Skip to content

Commit 4e9d709

Browse files
Fix bug in multi-region SplitExplicitFreeSurface (#4947)
* fix bug * remove one line
1 parent 5bbc2a1 commit 4e9d709

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/MultiRegion/multi_region_split_explicit_free_surface.jl

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,10 @@ function materialize_free_surface(free_surface::SplitExplicitFreeSurface, veloci
2828
@apply_regionally u_bcs = barotropic_velocity_boundary_conditions(u_baroclinic)
2929
@apply_regionally v_bcs = barotropic_velocity_boundary_conditions(v_baroclinic)
3030

31-
U = Field{Center, Center, Nothing}(extended_grid, boundary_conditions = u_bcs)
32-
V = Field{Center, Center, Nothing}(extended_grid, boundary_conditions = v_bcs)
33-
34-
= Field{Center, Center, Nothing}(extended_grid, boundary_conditions = u_bcs)
35-
= Field{Center, Center, Nothing}(extended_grid, boundary_conditions = v_bcs)
31+
U = Field{Face, Center, Nothing}(extended_grid, boundary_conditions = u_bcs)
32+
V = Field{Center, Face, Nothing}(extended_grid, boundary_conditions = v_bcs)
33+
= Field{Face, Center, Nothing}(extended_grid, boundary_conditions = u_bcs)
34+
= Field{Center, Face, Nothing}(extended_grid, boundary_conditions = v_bcs)
3635

3736
filtered_state == η̅, U = U̅, V = V̅)
3837
barotropic_velocities = (U = U, V = V)
@@ -71,4 +70,3 @@ iterate_split_explicit!(free_surface, grid::MultiRegionGrids, GUⁿ, GVⁿ, Δτ
7170
@inline augmented_kernel_offsets(grid, ::XPartition) = (- halo_size(grid)[1] + 1, 0)
7271
@inline augmented_kernel_offsets(grid, ::YPartition) = (0, - halo_size(grid)[2] + 1)
7372
@inline augmented_kernel_offsets(grid, ::CubedSpherePartition) = (- halo_size(grid)[2] + 1, - halo_size(grid)[2] + 1)
74-

0 commit comments

Comments
 (0)