From 2067837f3a372d1c8da35a841a2a4637cddb1309 Mon Sep 17 00:00:00 2001 From: Tristan Montoya Date: Sat, 7 Sep 2024 18:42:46 +0200 Subject: [PATCH] make compatible with my PR trixi-framework/Trixi.jl#2068 --- src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl b/src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl index 1fb976b..992f145 100644 --- a/src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl +++ b/src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl @@ -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)