Skip to content

Commit

Permalink
make compatible with my PR trixi-framework/Trixi.jl#2068
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanmontoya committed Sep 7, 2024
1 parent 15062dc commit 2067837
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ end

# Create element container and initialize element data.
# This function dispatches on the dimensions of the mesh and the equation (AbstractEquations{3})
function Trixi.init_elements(mesh::Union{P4estMesh{2, RealT},
T8codeMesh{2, RealT}},
function Trixi.init_elements(mesh::Union{P4estMesh{2},
T8codeMesh{2}},
equations::AbstractEquations{3},
basis,
::Type{uEltype}) where {RealT <: Real,
uEltype <: Real}
::Type{uEltype}) where {uEltype <: Real}
nelements = Trixi.ncells(mesh)

NDIMS = 2 #Dimension of the manifold
ndims_spa = size(mesh.tree_node_coordinates, 1)
RealT = real(mesh)

_node_coordinates = Vector{RealT}(undef,
ndims_spa * nnodes(basis)^NDIMS * nelements)
Expand Down

0 comments on commit 2067837

Please sign in to comment.