From 134917d6d7d5fe503759cfee0e7de7ed2a42524a Mon Sep 17 00:00:00 2001 From: SimonCan Date: Thu, 9 Nov 2023 16:59:53 +0000 Subject: [PATCH] Reverted coupling semidiscretization to the main branch's by hand. This should be part of a different PR. --- .../semidiscretization_coupled.jl | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/semidiscretization/semidiscretization_coupled.jl b/src/semidiscretization/semidiscretization_coupled.jl index 4fc77cb6a60..49763b12e5d 100644 --- a/src/semidiscretization/semidiscretization_coupled.jl +++ b/src/semidiscretization/semidiscretization_coupled.jl @@ -371,9 +371,8 @@ mutable struct BoundaryConditionCoupled{NDIMS, NDIMST2M1, uEltype <: Real, Indic other_semi_index :: Int other_orientation :: Int indices :: Indices - coupling_converter :: Function - function BoundaryConditionCoupled(other_semi_index, indices, uEltype, coupling_converter) + function BoundaryConditionCoupled(other_semi_index, indices, uEltype) NDIMS = length(indices) u_boundary = Array{uEltype, NDIMS * 2 - 1}(undef, ntuple(_ -> 0, NDIMS * 2 - 1)) @@ -386,7 +385,7 @@ mutable struct BoundaryConditionCoupled{NDIMS, NDIMST2M1, uEltype <: Real, Indic end new{NDIMS, NDIMS * 2 - 1, uEltype, typeof(indices)}(u_boundary, other_semi_index, - other_orientation, indices, coupling_converter) + other_orientation, indices) end end @@ -496,12 +495,9 @@ function copy_to_coupled_boundary!(boundary_condition::BoundaryConditionCoupled{ for i in eachnode(solver) for v in 1:size(u, 1) - x = cache.elements.node_coordinates[:, i_node, j_node, linear_indices[i_cell, j_cell]] - converted_u = boundary_condition.coupling_converter(x, u[:, i_node, j_node, linear_indices[i_cell, j_cell]]) - boundary_condition.u_boundary[v, i, cell] = converted_u[v] - # boundary_condition.u_boundary[v, i, cell] = u[v, i_node, j_node, - # linear_indices[i_cell, - # j_cell]] + boundary_condition.u_boundary[v, i, cell] = u[v, i_node, j_node, + linear_indices[i_cell, + j_cell]] end i_node += i_node_step j_node += j_node_step