Skip to content

Commit 9b1edab

Browse files
Regularize field boundary conditions with a location rather than a name (#4704)
* Update field_boundary_conditions.jl * add a field_name
1 parent e166aac commit 9b1edab

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/BoundaryConditions/field_boundary_conditions.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,15 @@ function regularize_field_boundary_conditions(bcs::FieldBoundaryConditions,
229229
prognostic_names=nothing)
230230

231231
loc = assumed_field_location(field_name)
232+
return regularize_field_boundary_conditions(bcs, grid, loc, prognostic_names, field_name)
233+
end
232234

235+
function regularize_field_boundary_conditions(bcs::FieldBoundaryConditions,
236+
grid::AbstractGrid,
237+
loc::Tuple,
238+
prognostic_names=nothing,
239+
field_name=nothing)
240+
233241
west = regularize_west_boundary_condition(bcs.west, grid, loc, 1, LeftBoundary, prognostic_names)
234242
east = regularize_east_boundary_condition(bcs.east, grid, loc, 1, RightBoundary, prognostic_names)
235243
south = regularize_south_boundary_condition(bcs.south, grid, loc, 2, LeftBoundary, prognostic_names)

0 commit comments

Comments
 (0)