Skip to content

Commit 07519ae

Browse files
correct regularization (#4670)
1 parent 4e52864 commit 07519ae

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/ImmersedBoundaries/immersed_boundary_condition.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ end
7979
"""
8080
function regularize_immersed_boundary_condition(bc::IBC, grid, loc, field_name, prognostic_field_names)
8181

82-
west = loc[1] === Face ? nothing : regularize_boundary_condition(bc.west, grid, loc, 1, LeftBoundary, prognostic_field_names)
83-
east = loc[1] === Face ? nothing : regularize_boundary_condition(bc.east, grid, loc, 1, RightBoundary, prognostic_field_names)
84-
south = loc[2] === Face ? nothing : regularize_boundary_condition(bc.south, grid, loc, 2, LeftBoundary, prognostic_field_names)
85-
north = loc[2] === Face ? nothing : regularize_boundary_condition(bc.north, grid, loc, 2, RightBoundary, prognostic_field_names)
86-
bottom = loc[3] === Face ? nothing : regularize_boundary_condition(bc.bottom, grid, loc, 3, LeftBoundary, prognostic_field_names)
87-
top = loc[3] === Face ? nothing : regularize_boundary_condition(bc.top, grid, loc, 3, RightBoundary, prognostic_field_names)
82+
west = loc[1] === Center ? regularize_boundary_condition(bc.west, grid, loc, 1, LeftBoundary, prognostic_field_names) : nothing
83+
east = loc[1] === Center ? regularize_boundary_condition(bc.east, grid, loc, 1, RightBoundary, prognostic_field_names) : nothing
84+
south = loc[2] === Center ? regularize_boundary_condition(bc.south, grid, loc, 2, LeftBoundary, prognostic_field_names) : nothing
85+
north = loc[2] === Center ? regularize_boundary_condition(bc.north, grid, loc, 2, RightBoundary, prognostic_field_names) : nothing
86+
bottom = loc[3] === Center ? regularize_boundary_condition(bc.bottom, grid, loc, 3, LeftBoundary, prognostic_field_names) : nothing
87+
top = loc[3] === Center ? regularize_boundary_condition(bc.top, grid, loc, 3, RightBoundary, prognostic_field_names) : nothing
8888

8989
return ImmersedBoundaryCondition(; west, east, south, north, bottom, top)
9090
end

0 commit comments

Comments
 (0)