From def208bd4e825a789816340af94edf40d0b7b5ea Mon Sep 17 00:00:00 2001 From: Erik Faulhaber <44124897+efaulhaber@users.noreply.github.com> Date: Tue, 25 Jun 2024 13:58:03 +0200 Subject: [PATCH] Add a comment to coupled boundary condition (#1990) * Add a comment to coupled boundary condition * Update src/semidiscretization/semidiscretization_coupled.jl Co-authored-by: Michael Schlottke-Lakemper --------- Co-authored-by: Michael Schlottke-Lakemper --- src/semidiscretization/semidiscretization_coupled.jl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/semidiscretization/semidiscretization_coupled.jl b/src/semidiscretization/semidiscretization_coupled.jl index 44aae912c27..6b009cfad20 100644 --- a/src/semidiscretization/semidiscretization_coupled.jl +++ b/src/semidiscretization/semidiscretization_coupled.jl @@ -429,7 +429,12 @@ BoundaryConditionCoupled(2, (:j, :i_backwards, :end), Float64, fun) !!! warning "Experimental code" This is an experimental feature and can change any time. """ -mutable struct BoundaryConditionCoupled{NDIMS, other_semi_index, NDIMST2M1, +mutable struct BoundaryConditionCoupled{NDIMS, + # Store the other semi index as type parameter, + # so that retrieving the other semidiscretization + # is type-stable. + # x-ref: https://github.com/trixi-framework/Trixi.jl/pull/1979 + other_semi_index, NDIMST2M1, uEltype <: Real, Indices, CouplingConverter} # NDIMST2M1 == NDIMS * 2 - 1 # Buffer for boundary values: [variable, nodes_i, nodes_j, cell_i, cell_j]