Skip to content

Commit

Permalink
Update src/semidiscretization/semidiscretization_coupled.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Erik Faulhaber <[email protected]>
  • Loading branch information
SimonCan and efaulhaber authored Dec 11, 2023
1 parent 6c60c3e commit 388a309
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/semidiscretization/semidiscretization_coupled.jl
Original file line number Diff line number Diff line change
Expand Up @@ -545,9 +545,10 @@ function copy_to_coupled_boundary!(boundary_condition::BoundaryConditionCoupled{
element_id = linear_indices[i_cell, j_cell]

for element_id in eachnode(solver)
x = @view cache.elements.node_coordinates[:, i_node, j_node,
linear_indices[i_cell, j_cell]]
u_node = u[:, i_node, j_node, linear_indices[i_cell, j_cell]]
x = get_node_coords(node_coordinates, equations, solver, i_node, j_node,
linear_indices[i_cell, j_cell])
u_node = get_node_vars(u, equations, solver, i_node, j_node,
linear_indices[i_cell, j_cell]]
converted_u = coupling_converter(x, u_node)
u_boundary[:, element_id, cell] = converted_u
i_node += i_node_step
Expand Down

0 comments on commit 388a309

Please sign in to comment.