From c8c30aee3c75d933c8f4cacf07ce8dfc03898658 Mon Sep 17 00:00:00 2001 From: Gabriele Bozzola Date: Wed, 5 Jun 2024 08:48:46 -0700 Subject: [PATCH] Fix surface_conditions --- regression_tests/ref_counter.jl | 5 ++++- src/surface_conditions/surface_conditions.jl | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/regression_tests/ref_counter.jl b/regression_tests/ref_counter.jl index 01c5afd393..6de6fe1aff 100644 --- a/regression_tests/ref_counter.jl +++ b/regression_tests/ref_counter.jl @@ -1,4 +1,7 @@ -162 +163 + +# 163: +# - Fixed bug introduced in 162 # 162: # - Changed the order of operations in surface conditions calculation. diff --git a/src/surface_conditions/surface_conditions.jl b/src/surface_conditions/surface_conditions.jl index b6df21cb4d..f36ac22042 100644 --- a/src/surface_conditions/surface_conditions.jl +++ b/src/surface_conditions/surface_conditions.jl @@ -418,7 +418,7 @@ vector_from_component(f₁, L::Geometry.LocalGeometry) = 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) + f = C12(f₁₃ * xz + f₂₃ * yz, L) return n₃ ⊗ f end