Skip to content

Commit

Permalink
Remove @inline
Browse files Browse the repository at this point in the history
  • Loading branch information
glwagner authored and juliasloan25 committed May 17, 2024
1 parent aad704a commit be55da5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/surface_conditions/surface_conditions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -409,13 +409,13 @@ function atmos_surface_conditions(
)
end

@inline surface_normal(L::Geometry.LocalGeometry) = C3(unit_basis_vector_data(C3, L))
surface_normal(L::Geometry.LocalGeometry) = C3(unit_basis_vector_data(C3, L))

@inline vector_from_component(f₁, n₁) = f₁ * n₁
@inline vector_from_component(f₁, L::Geometry.LocalGeometry) =
vector_from_component(f₁, n₁) = f₁ * n₁
vector_from_component(f₁, L::Geometry.LocalGeometry) =
vector_from_component(f₁, surface_normal(L))

@inline function tensor_from_components(f₁₃, f₂₃, L, n₃ = surface_normal(L))
function tensor_from_components(f₁₃, f₂₃, L, n₃ = surface_normal(L))
xz = CT12(CT1(unit_basis_vector_data(CT1, L)), L)
yz = CT12(CT2(unit_basis_vector_data(CT2, L)), L)
f = C12(f₁₃ * xz + f₂₃ * xz, L)
Expand Down

0 comments on commit be55da5

Please sign in to comment.