Skip to content

Commit 367cedb

Browse files
committed
more longrun fixes
1 parent e0837a8 commit 367cedb

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.buildkite/longruns/pipeline.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ steps:
9999
queue: clima
100100
slurm_mem: 32GB
101101
slurm_gpus: 1
102+
timeout_in_minutes: 2160 # 36 hours
102103

103104
- group: "AMIP simulations"
104105

experiments/ClimaEarth/components/land/climaland_integrated.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

experiments/ClimaEarth/user_io/diagnostics_plots.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)