Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p4est solver on a spherical mesh #25

Merged
merged 8 commits into from
Aug 15, 2024
27 changes: 21 additions & 6 deletions src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,56 +28,69 @@
_surface_flux_values::Vector{uEltype}
end

@inline function nelements(elements::P4estElementContainerPtrArray)
amrueda marked this conversation as resolved.
Show resolved Hide resolved
size(elements.node_coordinates, ndims(elements) + 2)

Check warning on line 32 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L31-L32

Added lines #L31 - L32 were not covered by tests
end
@inline Base.ndims(::P4estElementContainerPtrArray{NDIMS}) where {NDIMS} = NDIMS
@inline function Base.eltype(::P4estElementContainerPtrArray{NDIMS, RealT, uEltype}) where {

Check warning on line 35 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L34-L35

Added lines #L34 - L35 were not covered by tests
NDIMS,
RealT,
uEltype
}
uEltype

Check warning on line 40 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L40

Added line #L40 was not covered by tests
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},

Check warning on line 45 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L45

Added line #L45 was not covered by tests
T8codeMesh{2, RealT}},
equations::AbstractEquations{3},
basis,
::Type{uEltype}) where {NDIMS, RealT <: Real,
::Type{uEltype}) where {RealT <: Real,
uEltype <: Real}
nelements = Trixi.ncells(mesh)

Check warning on line 51 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L51

Added line #L51 was not covered by tests

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

Check warning on line 54 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L53-L54

Added lines #L53 - L54 were not covered by tests

_node_coordinates = Vector{RealT}(undef,

Check warning on line 56 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L56

Added line #L56 was not covered by tests
ndims_spa * nnodes(basis)^NDIMS * nelements)
node_coordinates = Trixi.unsafe_wrap(Array, pointer(_node_coordinates),

Check warning on line 58 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L58

Added line #L58 was not covered by tests
(ndims_spa,
ntuple(_ -> nnodes(basis), NDIMS)...,

Check warning on line 60 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L60

Added line #L60 was not covered by tests
nelements))

_jacobian_matrix = Vector{RealT}(undef,

Check warning on line 63 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L63

Added line #L63 was not covered by tests
ndims_spa * NDIMS * nnodes(basis)^NDIMS *
nelements)
jacobian_matrix = Trixi.unsafe_wrap(Array, pointer(_jacobian_matrix),

Check warning on line 66 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L66

Added line #L66 was not covered by tests
(ndims_spa, NDIMS,
ntuple(_ -> nnodes(basis), NDIMS)...,

Check warning on line 68 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L68

Added line #L68 was not covered by tests
nelements))

_contravariant_vectors = Vector{RealT}(undef,

Check warning on line 71 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L71

Added line #L71 was not covered by tests
ndims_spa^2 * nnodes(basis)^NDIMS *
nelements)
contravariant_vectors = PtrArray(pointer(_contravariant_vectors),

Check warning on line 74 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L74

Added line #L74 was not covered by tests
(Trixi.StaticInt(ndims_spa), ndims_spa,
ntuple(_ -> nnodes(basis), NDIMS)...,

Check warning on line 76 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L76

Added line #L76 was not covered by tests
nelements))

_inverse_jacobian = Vector{RealT}(undef, nnodes(basis)^NDIMS * nelements)
inverse_jacobian = Trixi.unsafe_wrap(Array, pointer(_inverse_jacobian),
(ntuple(_ -> nnodes(basis), NDIMS)...,

Check warning on line 81 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L79-L81

Added lines #L79 - L81 were not covered by tests
nelements))

_surface_flux_values = Vector{uEltype}(undef,

Check warning on line 84 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L84

Added line #L84 was not covered by tests
nvariables(equations) *
nnodes(basis)^(NDIMS - 1) * (NDIMS * 2) *
nelements)
surface_flux_values = Trixi.unsafe_wrap(Array, pointer(_surface_flux_values),

Check warning on line 88 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L88

Added line #L88 was not covered by tests
(nvariables(equations),
ntuple(_ -> nnodes(basis), NDIMS - 1)...,

Check warning on line 90 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L90

Added line #L90 was not covered by tests
NDIMS * 2, nelements))

elements = P4estElementContainerPtrArray{NDIMS, RealT, uEltype, NDIMS + 1,

Check warning on line 93 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L93

Added line #L93 was not covered by tests
NDIMS + 2,
NDIMS + 3, typeof(contravariant_vectors)}(node_coordinates,
jacobian_matrix,
Expand All @@ -90,123 +103,125 @@
_inverse_jacobian,
_surface_flux_values)

init_elements_2d_manifold_in_3d!(elements, mesh, basis)

Check warning on line 106 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L106

Added line #L106 was not covered by tests

return elements

Check warning on line 108 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L108

Added line #L108 was not covered by tests
end

function init_elements_2d_manifold_in_3d!(elements,

Check warning on line 111 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L111

Added line #L111 was not covered by tests
mesh::Union{P4estMesh{2}, T8codeMesh{2}},
basis::LobattoLegendreBasis)
(; node_coordinates, jacobian_matrix,

Check warning on line 114 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L114

Added line #L114 was not covered by tests
contravariant_vectors, inverse_jacobian) = elements

calc_node_coordinates_2d_shell!(node_coordinates, mesh, basis)

Check warning on line 117 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L117

Added line #L117 was not covered by tests

for element in 1:Trixi.ncells(mesh)

Check warning on line 119 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L119

Added line #L119 was not covered by tests

# Compute Jacobian matrix as usual
Trixi.calc_jacobian_matrix!(jacobian_matrix, element, node_coordinates, basis)

Check warning on line 122 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L122

Added line #L122 was not covered by tests

# Compute contravariant vectors
calc_contravariant_vectors_2d_shell!(contravariant_vectors,

Check warning on line 125 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L125

Added line #L125 was not covered by tests
element,
jacobian_matrix,
node_coordinates,
basis)

# Compute the inverse Jacobian as the norm of the cross product of the covariant vectors
for j in eachnode(basis), i in eachnode(basis)
inverse_jacobian[i, j, element] = 1 /

Check warning on line 133 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L132-L133

Added lines #L132 - L133 were not covered by tests
norm(Trixi.cross(jacobian_matrix[:, 1, i,
j,
element],
jacobian_matrix[:, 2, i,
j,
element]))
end
end

Check warning on line 141 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L140-L141

Added lines #L140 - L141 were not covered by tests

return nothing

Check warning on line 143 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L143

Added line #L143 was not covered by tests
end

# Interpolate tree_node_coordinates to each quadrant at the nodes of the specified basis
function calc_node_coordinates_2d_shell!(node_coordinates,

Check warning on line 147 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L147

Added line #L147 was not covered by tests
mesh::Union{P4estMesh{2}, T8codeMesh{2}},
basis::LobattoLegendreBasis)
# Hanging nodes will cause holes in the mesh if its polydeg is higher
# than the polydeg of the solver.
@assert length(basis.nodes)>=length(mesh.nodes) "The solver can't have a lower polydeg than the mesh"

Check warning on line 152 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L152

Added line #L152 was not covered by tests

calc_node_coordinates_2d_shell!(node_coordinates, mesh, basis.nodes)

Check warning on line 154 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L154

Added line #L154 was not covered by tests
end

# Interpolate tree_node_coordinates to each quadrant at the specified nodes
function calc_node_coordinates_2d_shell!(node_coordinates,

Check warning on line 158 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L158

Added line #L158 was not covered by tests
mesh::P4estMesh{2},
nodes::AbstractVector)
# We use `StrideArray`s here since these buffers are used in performance-critical
# places and the additional information passed to the compiler makes them faster
# than native `Array`s.
tmp1 = StrideArray(undef, real(mesh),
Trixi.StaticInt(size(mesh.tree_node_coordinates, 1)),
Trixi.static_length(nodes), Trixi.static_length(mesh.nodes))
matrix1 = StrideArray(undef, real(mesh),
Trixi.static_length(nodes), Trixi.static_length(mesh.nodes))
tmp1 = Trixi.StrideArray(undef, real(mesh),

Check warning on line 164 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L164

Added line #L164 was not covered by tests
Trixi.StaticInt(size(mesh.tree_node_coordinates, 1)),
Trixi.static_length(nodes),
Trixi.static_length(mesh.nodes))
matrix1 = Trixi.StrideArray(undef, real(mesh),

Check warning on line 168 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L168

Added line #L168 was not covered by tests
Trixi.static_length(nodes),
Trixi.static_length(mesh.nodes))
matrix2 = similar(matrix1)
baryweights_in = Trixi.barycentric_weights(mesh.nodes)

Check warning on line 172 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L171-L172

Added lines #L171 - L172 were not covered by tests

# Macros from `p4est`
p4est_root_len = 1 << Trixi.P4EST_MAXLEVEL
p4est_root_len = 1 << Trixi.P4EST_MAXLEVEL
p4est_quadrant_len(l) = 1 << (Trixi.P4EST_MAXLEVEL - l)

Check warning on line 177 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L175-L177

Added lines #L175 - L177 were not covered by tests

trees = Trixi.unsafe_wrap_sc(Trixi.p4est_tree_t, mesh.p4est.trees)

Check warning on line 179 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L179

Added line #L179 was not covered by tests

for tree in eachindex(trees)
offset = trees[tree].quadrants_offset
quadrants = Trixi.unsafe_wrap_sc(Trixi.p4est_quadrant_t, trees[tree].quadrants)

Check warning on line 183 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L181-L183

Added lines #L181 - L183 were not covered by tests

for i in eachindex(quadrants)
element = offset + i
quad = quadrants[i]

Check warning on line 187 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L185-L187

Added lines #L185 - L187 were not covered by tests

quad_length = p4est_quadrant_len(quad.level) / p4est_root_len

Check warning on line 189 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L189

Added line #L189 was not covered by tests

nodes_out_x = 2 * (quad_length * 1 / 2 * (nodes .+ 1) .+

Check warning on line 191 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L191

Added line #L191 was not covered by tests
quad.x / p4est_root_len) .- 1
nodes_out_y = 2 * (quad_length * 1 / 2 * (nodes .+ 1) .+

Check warning on line 193 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L193

Added line #L193 was not covered by tests
quad.y / p4est_root_len) .- 1
Trixi.polynomial_interpolation_matrix!(matrix1, mesh.nodes, nodes_out_x,

Check warning on line 195 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L195

Added line #L195 was not covered by tests
baryweights_in)
Trixi.polynomial_interpolation_matrix!(matrix2, mesh.nodes, nodes_out_y,

Check warning on line 197 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L197

Added line #L197 was not covered by tests
baryweights_in)

Trixi.multiply_dimensionwise!(view(node_coordinates, :, :, :, element),

Check warning on line 200 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L200

Added line #L200 was not covered by tests
matrix1, matrix2,
view(mesh.tree_node_coordinates, :, :, :,
tree),
tmp1)
end
end

Check warning on line 206 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L205-L206

Added lines #L205 - L206 were not covered by tests

return node_coordinates

Check warning on line 208 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L208

Added line #L208 was not covered by tests
end

function calc_contravariant_vectors_2d_shell!(contravariant_vectors::AbstractArray{<:Any,

Check warning on line 211 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L211

Added line #L211 was not covered by tests
5},
element,
jacobian_matrix, node_coordinates,
basis::LobattoLegendreBasis)
@unpack derivative_matrix = basis

Check warning on line 216 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L216

Added line #L216 was not covered by tests

for j in eachnode(basis), i in eachnode(basis)
for n in 1:3

Check warning on line 219 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L218-L219

Added lines #L218 - L219 were not covered by tests
# (n, m, l) cyclic
m = (n % 3) + 1
l = ((n + 1) % 3) + 1

Check warning on line 222 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L221-L222

Added lines #L221 - L222 were not covered by tests

contravariant_vectors[n, 1, i, j, element] = (jacobian_matrix[m, 2, i, j,

Check warning on line 224 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L224

Added line #L224 was not covered by tests
element] *
node_coordinates[l, i, j,
element]
Expand All @@ -216,7 +231,7 @@
node_coordinates[m, i, j,
element])

contravariant_vectors[n, 2, i, j, element] = (jacobian_matrix[l, 1, i, j,

Check warning on line 234 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L234

Added line #L234 was not covered by tests
element] *
node_coordinates[m, i, j,
element]
Expand All @@ -226,7 +241,7 @@
node_coordinates[l, i, j,
element])

contravariant_vectors[n, 3, i, j, element] = (jacobian_matrix[m, 1, i, j,

Check warning on line 244 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L244

Added line #L244 was not covered by tests
element] *
jacobian_matrix[l, 2, i, j,
element]
Expand All @@ -235,9 +250,9 @@
element] *
jacobian_matrix[l, 1, i, j,
element])
end
end

Check warning on line 254 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L253-L254

Added lines #L253 - L254 were not covered by tests

return contravariant_vectors

Check warning on line 256 in src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl

View check run for this annotation

Codecov / codecov/patch

src/solvers/dgsem_p4est/containers_2d_manifold_in_3d.jl#L256

Added line #L256 was not covered by tests
end
end # @muladd
Loading