Skip to content

Commit 8ea2569

Browse files
authored
increase time step to 900s. (#1756)
1 parent f727f61 commit 8ea2569

9 files changed

Lines changed: 24 additions & 28 deletions

File tree

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ ClimaLand.jl Release Notes
22
========================
33
main
44
----
5+
- Change timestep to 900s from 450s in calibration, longruns and benchmarks; reduce the number of short/default diagnostics PR[#1756](https://github.com/CliMA/ClimaLand.jl/pull/1756)
56

67
v1.8.3
78
-----

experiments/benchmarks/bucket.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const FT = Float64;
2828
## This result is from a benchmark run on an A100 on the clima cluster
2929
const PREVIOUS_GPU_TIME_S = 0.13
3030
## This result is from a benchmark run with a single process on the clima cluster
31-
const PREVIOUS_CPU_TIME_S = 2.0
31+
const PREVIOUS_CPU_TIME_S = 2.15
3232
######################################################################
3333
include("benchmark_utils.jl")
3434

experiments/benchmarks/richards.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const FT = Float64;
4747
## This result is from a benchmark run on an A100 on the clima cluster
4848
const PREVIOUS_GPU_TIME_S = 0.40
4949
## This result is from a benchmark run with a single process on the clima cluster
50-
const PREVIOUS_CPU_TIME_S = 1.18
50+
const PREVIOUS_CPU_TIME_S = 1.23
5151
######################################################################
5252

5353
include("benchmark_utils.jl")

experiments/benchmarks/snowy_land.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Number of spatial elements: 180, 360, 15
88
# Soil depth: 50 m
99
# Simulation duration: 6 hours
10-
# Timestep: 450 s
10+
# Timestep: 900 s
1111
# Timestepper: ARS111
1212
# Fixed number of iterations: 3
1313
# Jacobian update: every Newton iteration
@@ -36,9 +36,9 @@ const FT = Float64
3636

3737
######################################################################
3838
## This result is from a benchmark run on an A100 on the clima cluster
39-
const PREVIOUS_GPU_TIME_S = 0.515
39+
const PREVIOUS_GPU_TIME_S = 0.279
4040
## This result is from a benchmark run with a single process on the clima cluster
41-
const PREVIOUS_CPU_TIME_S = 15.8
41+
const PREVIOUS_CPU_TIME_S = 19.0
4242
######################################################################
4343

4444
include("benchmark_utils.jl")
@@ -55,7 +55,7 @@ function setup_snowyland()
5555
start_date = DateTime(2008)
5656
duration = Dates.Hour(6)
5757
stop_date = start_date + duration
58-
Δt = 450.0
58+
Δt = 900.0
5959
time_interpolation_method = LinearInterpolation(PeriodicCalendar())
6060
nelements = (180, 360, 15)
6161
earth_param_set = LP.LandParameters(toml_dict)

experiments/benchmarks/soil.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Number of spatial elements: 101 in horizontal, 15 in vertical
33
# Soil depth: 50 m
44
# Simulation duration: 6 hours
5-
# Timestep: 450 s
5+
# Timestep: 900 s
66
# Timestepper: ARS111
77
# Fixed number of iterations: 3
88
# Jacobian update: every new Newton iteration
@@ -31,7 +31,7 @@ const FT = Float64;
3131

3232
######################################################################
3333
# This result is from a benchmark run on an A100 on the clima cluster
34-
const PREVIOUS_GPU_TIME_S = 0.13
34+
const PREVIOUS_GPU_TIME_S = 0.0794
3535
## This result is from a benchmark run with a single process on the clima cluster
3636
const PREVIOUS_CPU_TIME_S = 1.12
3737
######################################################################
@@ -49,7 +49,7 @@ function setup_soil()
4949
start_date = DateTime(2008)
5050
duration = Hour(6)
5151
stop_date = start_date + duration
52-
Δt = 450.0
52+
Δt = 900.0
5353
nelements = (101, 101, 15)
5454
domain = ClimaLand.Domains.global_box_domain(FT; context, nelements)
5555
forcing = ClimaLand.prescribed_forcing_era5(

experiments/calibration/models/snowy_land.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Number of spatial elements: 101 in horizontal, 15 in vertical
1111
# Soil depth: 50 m
1212
# Simulation duration: 730 d
13-
# Timestep: 450 s
13+
# Timestep: 900 s
1414
# Timestepper: ARS111
1515
# Fixed number of iterations: 3
1616
# Jacobian update: every new Newton iteration
@@ -74,7 +74,7 @@ function ClimaCalibrate.forward_model(
7474
# Determine start date and end date from the sample date ranges
7575
start_date = first(sample_date_ranges[minimum(minibatch)]) - spinup
7676
stop_date = last(sample_date_ranges[maximum(minibatch)]) + extend
77-
Δt = 450.0
77+
Δt = 900.0
7878

7979
# Convert to ITimes
8080
t0 = ITime(0, Dates.Second(1), start_date)

experiments/long_runs/snowy_land_pmodel.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Number of spatial elements: 101 in horizontal, 15 in vertical
1111
# Soil depth: 50 m
1212
# Simulation duration: 730 d
13-
# Timestep: 450 s
13+
# Timestep: 900 s
1414
# Timestepper: ARS111
1515
# Fixed number of iterations: 3
1616
# Jacobian update: every new Newton iteration
@@ -111,7 +111,7 @@ end
111111
# March so that a full season is included in seasonal metrics.
112112
start_date = LONGER_RUN ? DateTime("2000-03-01") : DateTime("2008-03-01")
113113
stop_date = LONGER_RUN ? DateTime("2019-03-01") : DateTime("2010-03-01")
114-
Δt = 450.0
114+
Δt = 900.0
115115
domain =
116116
ClimaLand.Domains.global_box_domain(FT; context, mask_threshold = FT(0.99))
117117

experiments/long_runs/soil.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Number of spatial elements: 101 in horizontal, 15 in vertical
1010
# Soil depth: 50 m
1111
# Simulation duration: 2-20 years, based on LONGER_RUN setting
12-
# Timestep: 450 s
12+
# Timestep: 900 s
1313
# Timestepper: ARS111
1414
# Fixed number of iterations: 3
1515
# Jacobian update: every new Newton iteration
@@ -57,7 +57,7 @@ outdir =
5757
# If LONGER run, run for 20 years, with the correct forcing each year.
5858
start_date = LONGER_RUN ? DateTime(2000) : DateTime(2008)
5959
stop_date = LONGER_RUN ? DateTime(2020) : DateTime(2010)
60-
Δt = 450.0
60+
Δt = 900.0
6161
domain = ClimaLand.Domains.global_box_domain(FT; context)
6262
toml_dict = LP.create_toml_dict(FT)
6363

@@ -90,7 +90,7 @@ simulation =
9090
CP.log_parameter_information(toml_dict, joinpath(root_path, "parameters.toml"))
9191
ClimaLand.Simulations.solve!(simulation)
9292

93-
short_names = ["swc", "sie", "si", "et", "wvpa"]
93+
short_names = ["swc", "sie", "si"]
9494
LandSimVis.make_annual_timeseries(simulation; savedir = root_path, short_names)
9595
LandSimVis.make_heatmaps(
9696
simulation;

src/diagnostics/default_diagnostics.jl

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -405,23 +405,23 @@ function add_diagnostics!(
405405
model::EnergyHydrology,
406406
subcomponent::ClimaLand.AtmosDrivenFluxBC,
407407
)
408-
append!(diagnostics, ["soilrn", "soillhf", "soilshf", "salb"])
408+
append!(diagnostics, ["salb"])
409409
return nothing
410410
end
411411
function add_diagnostics!(
412412
diagnostics,
413413
model::EnergyHydrology,
414414
subcomponent::ClimaLand.Soil.Runoff.SurfaceRunoff,
415415
)
416-
append!(diagnostics, ["sr", "tr"])
416+
append!(diagnostics, ["sr"])
417417
return nothing
418418
end
419419
function add_diagnostics!(
420420
diagnostics,
421421
model::EnergyHydrology,
422422
subcomponent::ClimaLand.Soil.Runoff.TOPMODELRunoff,
423423
)
424-
append!(diagnostics, ["sr", "ssr", "tr", "sfsat", "sath", "infc"])
424+
append!(diagnostics, ["sr", "ssr"])
425425
return nothing
426426
end
427427
function add_diagnostics!(
@@ -615,13 +615,13 @@ end
615615
Return a shortened list of highlighted diagnostics for the given model.
616616
"""
617617
function get_short_diagnostics(model::EnergyHydrology)
618-
return ["swc", "si", "sie", "tsoil", "et"]
618+
return ["swc", "si", "sie", "tsoil"]
619619
end
620620
function get_short_diagnostics(model::SoilCO2Model)
621-
return ["sco2", "hr", "soc", "soc_int", "sco2_ppm"]
621+
return ["sco2", "hr", "so2"]
622622
end
623623
function get_short_diagnostics(model::CanopyModel)
624-
diagnostics = ["gpp", "ct", "lai", "trans", "er", "sif"]
624+
diagnostics = ["gpp", "lai", "trans", "er"]
625625
add_diagnostics!(diagnostics, model, model.biomass)
626626
return diagnostics
627627
end
@@ -632,7 +632,7 @@ function get_possible_diagnostics(model::ClimaLand.InlandWater.SlabLakeModel)
632632
return ["lkie", "tlake", "qlake", "alake", "shflake", "lhflake", "rnlake"]
633633
end
634634
function get_short_diagnostics(model::ClimaLand.InlandWater.SlabLakeModel)
635-
return ["tlake", "alake"]
635+
return ["tlake"]
636636
end
637637
function get_short_diagnostics(model::SoilCanopyModel)
638638
component_diagnostics =
@@ -656,18 +656,13 @@ function get_short_diagnostics(model::LandModel)
656656
"lwu",
657657
"swu",
658658
"shf",
659-
"swd",
660-
"lwd",
661659
"tair",
662660
"precip",
663661
"lhf",
664662
"msf",
665-
"lwp",
666663
"iwc",
667-
"sdr",
668664
"nee",
669665
"ra",
670-
"cveg",
671666
]
672667

673668
# Add conditional diagnostics based on soil runoff type, since this

0 commit comments

Comments
 (0)