Skip to content

Commit 1fddbf2

Browse files
committed
use set!(::PrescribedAtmosphere,...)
1 parent afd7a66 commit 1fddbf2

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/OceanSeaIceModels/ocean_sea_ice_model.jl

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,10 @@ function set!(model::OSIM, checkpoint_file_path::AbstractString)
102102
ocean = model.ocean.model
103103

104104
set!(ocean, checkpoint_file_path)
105+
set!(atmosphere, checkpoint_file_path)
106+
107+
set_clock!(model, ocean.clock)
105108

106-
# ensure all clocks follow the ocean model clock
107-
clock = ocean.clock
108-
set_clock!(model, clock)
109-
set_clock!(atmosphere, clock)
110-
111109
return nothing
112110
end
113111

@@ -227,4 +225,3 @@ function above_freezing_ocean_temperature!(ocean, sea_ice::SeaIceSimulation)
227225

228226
return nothing
229227
end
230-

0 commit comments

Comments
 (0)