File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 9999 queue : clima
100100 slurm_mem : 32GB
101101 slurm_gpus : 1
102+ timeout_in_minutes : 2160 # 36 hours
102103
103104 - group : " AMIP simulations"
104105
Original file line number Diff line number Diff line change @@ -185,7 +185,9 @@ function ClimaLandSimulation(
185185 # code itself requires a surface temperature as input.
186186 @. p. T_sfc = orog_adjusted_T_surface
187187
188- updateat = [promote (tspan[1 ]: dt: (tspan[2 ] + dt). .. )... ] # add an extra time at end in case sim steps over end
188+ # Update cos(zenith angle) within land model every hour
189+ update_dt = dt isa ITime ? ITime (3600 ) : 3600
190+ updateat = [promote (tspan[1 ]: update_dt: (tspan[2 ] + dt). .. )... ] # add an extra time at end in case sim steps over end
189191 updatefunc = CL. make_update_drivers (CL. get_drivers (model))
190192 driver_cb = CL. DriverUpdateCallback (updateat, updatefunc)
191193
Original file line number Diff line number Diff line change @@ -113,6 +113,12 @@ function make_plots_generic(
113113 vars_left_to_plot -= 1
114114 continue
115115 end
116+ if minimum (var. data) == maximum (var. data)
117+ @warn " $(short_name (var)) diagnostic is spatially constant - skipping plot"
118+ vars_left_to_plot -= 1
119+ continue
120+ end
121+
116122 if grid_pos > MAX_PLOTS_PER_PAGE
117123 fig = makefig ()
118124 grid = gridlayout ()
@@ -133,6 +139,9 @@ function make_plots_generic(
133139 end
134140 end
135141
142+ # Return early if there are no plots to save
143+ isempty (summary_files) && return nothing
144+
136145 # Save plots
137146 output_file = joinpath (plot_path, " $(output_name) .pdf" )
138147
You can’t perform that action at this time.
0 commit comments