Skip to content

Commit 4f0169a

Browse files
authored
Merge pull request #1086 from CliMA/js/parsedargs
Isolate config and argument parsing
2 parents e168347 + 5d1154c commit 4f0169a

File tree

57 files changed

+553
-327
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+553
-327
lines changed

.buildkite/pipeline.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,14 @@ steps:
188188

189189
# AMIP EXPERIMENTS
190190

191+
# Test default behavior with no config file or job ID provided
192+
- label: "AMIP: default"
193+
key: "amip_default"
194+
command: "julia --color=yes --project=experiments/ClimaEarth/ experiments/ClimaEarth/run_amip.jl"
195+
artifact_paths: "experiments/ClimaEarth/output/amip_default/artifacts/*"
196+
agents:
197+
slurm_mem: 20GB
198+
191199
- label: "AMIP target: albedo from function"
192200
key: "target_amip_albedo_function"
193201
command: "julia --color=yes --project=experiments/ClimaEarth/ experiments/ClimaEarth/run_amip.jl --config_file $CONFIG_PATH/amip_albedo_function.yml --job_id target_amip_albedo_function"

config/amip_configs/amip.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ albedo_model: "CouplerAlbedo"
33
atmos_config_file: "config/longrun_configs/amip_target_diagedmf.yml"
44
coupler_toml_file: "toml/amip.toml"
55
dt: "120secs"
6-
dt_cpl: 120
6+
dt_cpl: "120secs"
77
dt_save_state_to_disk: "30days"
88
dt_save_to_sol: "30days"
99
dz_bottom: 30.0

config/benchmark_configs/amip_diagedmf.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FLOAT_TYPE: "Float32"
22
atmos_config_file: "config/benchmark_configs/climaatmos_diagedmf.yml"
33
atmos_config_repo: "ClimaCoupler"
44
dt: "120secs"
5-
dt_cpl: 120
5+
dt_cpl: "120secs"
66
dt_save_state_to_disk: "Inf"
77
dt_save_to_sol: "Inf"
88
energy_check: false

config/benchmark_configs/amip_diagedmf_io.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FLOAT_TYPE: "Float32"
22
atmos_config_file: "config/benchmark_configs/climaatmos_diagedmf_io.yml"
33
atmos_config_repo: "ClimaCoupler"
44
dt: "120secs"
5-
dt_cpl: 120
5+
dt_cpl: "120secs"
66
dt_save_state_to_disk: "12hours"
77
dt_save_to_sol: "12hours"
88
energy_check: false

config/benchmark_configs/climaatmos_diagedmf_io.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ output_default_diagnostics: false
3232
prescribe_ozone: true
3333
aerosol_radiation: true
3434
prescribed_aerosols: ["CB1", "CB2", "DST01", "OC1", "OC2", "SO4", "SSLT01"]
35-
diagnostics:
35+
extra_atmos_diagnostics:
3636
- short_name: [pfull, rsut, rlut, pr, hus, rv]
3737
period: 10hours

config/ci_configs/amip_albedo_function.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apply_limiter: false
22
dt: "150secs"
3-
dt_cpl: 150
3+
dt_cpl: "150secs"
44
dt_rad: "1hours"
55
dt_save_to_sol: "1days"
66
dz_bottom: 30

config/ci_configs/amip_albedo_temporal_map.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apply_limiter: false
22
dt: "150secs"
3-
dt_cpl: 150
3+
dt_cpl: "150secs"
44
dt_rad: "1hours"
55
dt_save_to_sol: "1days"
66
dz_bottom: 30

config/ci_configs/amip_albedo_temporal_map_1M.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apply_limiter: false
22
dt: "150secs"
3-
dt_cpl: 150
3+
dt_cpl: "150secs"
44
dt_rad: "1hours"
55
dt_save_to_sol: "1days"
66
dz_bottom: 30

config/ci_configs/amip_coarse_ft32.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
FLOAT_TYPE: "Float32"
22
apply_limiter: false
3-
dt: "400secs"
4-
dt_cpl: 400
53
dt_save_to_sol: "100days"
64
energy_check: false
75
h_elem: 6

config/ci_configs/amip_coarse_ft64_hourly_checkpoints.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
apply_limiter: false
2-
dt: "400secs"
3-
dt_cpl: 400
42
dt_save_to_sol: "1days"
53
energy_check: false
64
h_elem: 6

0 commit comments

Comments
 (0)