Skip to content

Commit

Permalink
Apply propagate inbounds to some SEM operators
Browse files Browse the repository at this point in the history
  • Loading branch information
charleskawczynski committed Jun 16, 2023
1 parent e293d81 commit 5036e7d
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions src/Operators/spectralelement.jl
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,12 @@ Divergence{()}(space) = Divergence{operator_axes(space)}()
operator_return_eltype(op::Divergence{I}, ::Type{S}) where {I, S} =
RecursiveApply.rmaptype(Geometry.divergence_result_type, S)

function apply_operator(op::Divergence{(1,)}, space, slabidx, arg)
Base.@propagate_inbounds function apply_operator(
op::Divergence{(1,)},
space,
slabidx,
arg,
)
FT = Spaces.undertype(space)
QS = Spaces.quadrature_style(space)
Nq = Quadratures.degrees_of_freedom(QS)
Expand Down Expand Up @@ -671,7 +676,12 @@ WeakDivergence{()}(space) = WeakDivergence{operator_axes(space)}()
operator_return_eltype(::WeakDivergence{I}, ::Type{S}) where {I, S} =
RecursiveApply.rmaptype(Geometry.divergence_result_type, S)

function apply_operator(op::WeakDivergence{(1,)}, space, slabidx, arg)
Base.@propagate_inbounds function apply_operator(
op::WeakDivergence{(1,)},
space,
slabidx,
arg,
)
FT = Spaces.undertype(space)
QS = Spaces.quadrature_style(space)
Nq = Quadratures.degrees_of_freedom(QS)
Expand Down Expand Up @@ -812,7 +822,12 @@ Gradient{()}(space) = Gradient{operator_axes(space)}()
operator_return_eltype(::Gradient{I}, ::Type{S}) where {I, S} =
RecursiveApply.rmaptype(T -> Geometry.gradient_result_type(Val(I), T), S)

function apply_operator(op::Gradient{(1,)}, space, slabidx, arg)
Base.@propagate_inbounds function apply_operator(
op::Gradient{(1,)},
space,
slabidx,
arg,
)
FT = Spaces.undertype(space)
QS = Spaces.quadrature_style(space)
Nq = Quadratures.degrees_of_freedom(QS)
Expand Down Expand Up @@ -935,7 +950,12 @@ WeakGradient{()}(space) = WeakGradient{operator_axes(space)}()
operator_return_eltype(::WeakGradient{I}, ::Type{S}) where {I, S} =
RecursiveApply.rmaptype(T -> Geometry.gradient_result_type(Val(I), T), S)

function apply_operator(op::WeakGradient{(1,)}, space, slabidx, arg)
Base.@propagate_inbounds function apply_operator(
op::WeakGradient{(1,)},
space,
slabidx,
arg,
)
FT = Spaces.undertype(space)
QS = Spaces.quadrature_style(space)
Nq = Quadratures.degrees_of_freedom(QS)
Expand Down

0 comments on commit 5036e7d

Please sign in to comment.