-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added element container with PtrArray for performance and modified th…
…e structure
- Loading branch information
Showing
5 changed files
with
70 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name = "TrixiAtmo" | ||
uuid = "c9ed1054-d170-44a9-8ee2-d5566f5d1389" | ||
authors = ["Benedict Geihe <[email protected]>", "Tristan Montoya <[email protected]>", "Hendrik Ranocha <[email protected]>", "Michael Schlottke-Lakemper <[email protected]>"] | ||
authors = ["Benedict Geihe <[email protected]>", "Tristan Montoya <[email protected]>", "Hendrik Ranocha <[email protected]>", "Andrés Rueda-Ramírez <[email protected]>", "Michael Schlottke-Lakemper <[email protected]>"] | ||
version = "0.1.0-DEV" | ||
|
||
[deps] | ||
|
@@ -9,6 +9,8 @@ MuladdMacro = "46d2c3a1-f734-5fdb-9937-b9b9aeba4221" | |
Reexport = "189a3867-3050-52da-a836-e630ba90ab69" | ||
Static = "aedffcd0-7271-4cad-89d0-dc628f76c6d3" | ||
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" | ||
StaticArrayInterface = "0d7ed370-da01-4f52-bd93-41d350b8b718" | ||
StrideArrays = "d1fa6d79-ef01-42a6-86c9-f7c551f8593b" | ||
Trixi = "a7f1ee26-1774-49b1-8366-f1abc58fbfcb" | ||
|
||
[compat] | ||
|
@@ -17,5 +19,7 @@ MuladdMacro = "0.2.2" | |
Reexport = "1.0" | ||
Static = "0.8, 1" | ||
StaticArrays = "1" | ||
StaticArrayInterface = "1.5.1" | ||
StrideArrays = "0.1.28" | ||
Trixi = "0.7, 0.8" | ||
julia = "1.9" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Extract contravariant vector Ja^i (i = index) as SVector | ||
# This function dispatches on the type of contravariant_vectors | ||
static2val(::Trixi.StaticInt{N}) where {N} = Val{N}() | ||
@inline function get_contravariant_vector(index, contravariant_vectors::PtrArray, indices...) | ||
SVector(ntuple(@inline(dim->contravariant_vectors[dim, index, indices...]), | ||
static2val(static_size(contravariant_vectors, Trixi.StaticInt(1))))) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
include("dgsem_p4est_covariant/containers.jl") | ||
include("dgsem_p4est/dg.jl") | ||
include("dgsem_p4est/containers_2d_manifold_in_3d.jl") |