|
79 | 79 | """ |
80 | 80 | function regularize_immersed_boundary_condition(bc::IBC, grid, loc, field_name, prognostic_field_names) |
81 | 81 |
|
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 |
88 | 88 |
|
89 | 89 | return ImmersedBoundaryCondition(; west, east, south, north, bottom, top) |
90 | 90 | end |
|
0 commit comments