Skip to content

Commit

Permalink
Set h=1 in shallow water time stepping tests (#1264)
Browse files Browse the repository at this point in the history
Set h=1 in shallow water time stepping tests
  • Loading branch information
ali-ramadhan committed Dec 8, 2020
2 parents bb49707 + 0f65864 commit ebd7858
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_shallow_water_models.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ using Oceananigans.Grids: Periodic, Bounded
function time_stepping_shallow_water_model_works(arch, topo, coriolis)
grid = RegularCartesianGrid(size=(1, 1, 1), extent=(2π, 2π, 2π), topology=topo)
model = ShallowWaterModel(grid=grid, gravitational_acceleration=1, architecture=arch, coriolis=coriolis)
simulation = Simulation(model, Δt=1.0, stop_iteration=1)
set!(model, h=1)

simulation = Simulation(model, Δt=1.0, stop_iteration=1)
run!(simulation)

return model.clock.iteration == 1
Expand Down

0 comments on commit ebd7858

Please sign in to comment.