Skip to content

Commit

Permalink
missing cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilian-gelbrecht committed Nov 17, 2023
1 parent 2981241 commit d379a13
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion src/dynamics/prognostic_variables.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ end
$(TYPEDSIGNATURES)
Initialize the clock with the time step `Δt` in the `time_stepping`."""
function initialize!(clock::Clock,time_stepping::TimeStepper)
clock.n_timesteps = ceil(Int,24*clock.n_days/(value(time_stepping.Δt_sec)/3600))
clock.n_timesteps = ceil(Int,24*clock.n_days/(value(Hour(time_stepping.Δt_sec))))
return clock
end

Expand Down
7 changes: 0 additions & 7 deletions test/netcdf_output.jl
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,4 @@ end
t = NCDataset(tmp_read_path)["time"][:]
@test t == manual_time_axis(model.output.startdate,model.time_stepping.Δt_sec,progn.clock.n_timesteps)
@test t == SpeedyWeather.load_trajectory("time", model)


# do a simulation with the adjust_Δt_with_output turned on
output = OutputWriter(spectral_grid,PrimitiveDry,path=tmp_output_path,id="long-output-test",output_dt=Hour(24*365*10))
model = PrimitiveDryModel(;spectral_grid,output,time_stepping)


end

0 comments on commit d379a13

Please sign in to comment.