Skip to content

Commit 01fde02

Browse files
Fix bugs
1 parent 6a0f640 commit 01fde02

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Models/HydrostaticFreeSurfaceModels/SplitExplicitFreeSurfaces/split_explicit_free_surface.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ function maybe_extend_halos(TX, TY, grid, substepping::FixedSubstepNumber)
311311

312312
old_halos = halo_size(grid)
313313
Nsubsteps = length(substepping.averaging_weights)
314-
step_halo = Nsubsteps + 1
314+
step_halo = Nsubsteps + 2
315315

316316
Hx = TX() isa ConnectedTopology ? max(step_halo, old_halos[1]) : old_halos[1]
317317
Hy = TY() isa ConnectedTopology ? max(step_halo, old_halos[2]) : old_halos[2]

test/test_tripolar_grid.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ end
9898

9999
@test Hx == halo_size(grid, 1)
100100
@test Hy != halo_size(grid, 2)
101-
@test Hy == length(free_surface.substepping.averaging_weights) + 1
101+
@test Hy == length(free_surface.substepping.averaging_weights) + 2
102102

103103
@test begin
104104
time_step!(model, 1.0)

0 commit comments

Comments
 (0)