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 99
99
queue : clima
100
100
slurm_mem : 32GB
101
101
slurm_gpus : 1
102
+ timeout_in_minutes : 2160 # 36 hours
102
103
103
104
- group : " AMIP simulations"
104
105
Original file line number Diff line number Diff line change @@ -185,7 +185,9 @@ function ClimaLandSimulation(
185
185
# code itself requires a surface temperature as input.
186
186
@. p. T_sfc = orog_adjusted_T_surface
187
187
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
189
191
updatefunc = CL. make_update_drivers (CL. get_drivers (model))
190
192
driver_cb = CL. DriverUpdateCallback (updateat, updatefunc)
191
193
Original file line number Diff line number Diff line change @@ -113,6 +113,12 @@ function make_plots_generic(
113
113
vars_left_to_plot -= 1
114
114
continue
115
115
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
+
116
122
if grid_pos > MAX_PLOTS_PER_PAGE
117
123
fig = makefig ()
118
124
grid = gridlayout ()
@@ -133,6 +139,9 @@ function make_plots_generic(
133
139
end
134
140
end
135
141
142
+ # Return early if there are no plots to save
143
+ isempty (summary_files) && return nothing
144
+
136
145
# Save plots
137
146
output_file = joinpath (plot_path, " $(output_name) .pdf" )
138
147
You can’t perform that action at this time.
0 commit comments