Skip to content

Commit 8699207

Browse files
committed
check all clocks are aligned
1 parent 1fddbf2 commit 8699207

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/test_ocean_sea_ice_model.jl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,11 @@ end
147147

148148
run!(new_simulation, pickup=true)
149149

150-
# ensure the ocean and atmosphere time step and iteration are the same
151-
@test new_simulation.model.atmosphere.clock.iteration new_simulation.model.ocean.model.clock.iteration
152-
@test new_simulation.model.atmosphere.clock.time new_simulation.model.ocean.model.clock.time
150+
# ensure the ocean, atmosphere, and coupled model are all at same time and iteration
151+
clock = new_simulation.model.ocean.model.clock
152+
@test new_simulation.model.atmosphere.clock.iteration clock.iteration
153+
@test new_simulation.model.atmosphere.clock.time clock.time
154+
@test new_simulation.model.clock.iteration clock.iteration
155+
@test new_simulation.model.clock.time clock.time
153156
end
154157
end

0 commit comments

Comments
 (0)