Skip to content

Commit 36c6a8d

Browse files
authored
Merge pull request #4164 from CliMA/revert-4153-oa/fix_trace_gases
Revert "Refactor atmospheric gases"
2 parents 1ac64e5 + aeeaf04 commit 36c6a8d

File tree

43 files changed

+367
-251
lines changed

Some content is hidden

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

43 files changed

+367
-251
lines changed

calibration/experiments/gcm_driven_scm/model_config_diagnostic.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ z_elem: 60
2323
z_stretch: true
2424
dz_bottom: 30
2525
rad: allskywithclear
26+
co2_model: fixed
2627
insolation: "gcmdriven"
2728
dt: "100secs"
2829
t_end: "72hours"

calibration/experiments/gcm_driven_scm/model_config_prognostic.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ z_elem: 60
2525
z_stretch: true
2626
dz_bottom: 30
2727
rad: allskywithclear
28+
co2_model: fixed
2829
insolation: "gcmdriven"
2930
perturb_initstate: false
3031
dt: "10secs"

calibration/test/model_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ output_dir: calibration_end_to_end_test
88
output_default_diagnostics: false
99
dt_rad: 6hours
1010
rad: clearsky
11+
co2_model: fixed
1112
diagnostics:
1213
- reduction_time: average
1314
short_name: rsut

config/default_configs/default_config.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,12 @@ deep_atmosphere:
337337
restart_file:
338338
help: "Path to HDF5 file to use as simulation starting point. Note that the simulation can only be restarted in a reproducible way when `reproducible_restart` is true."
339339
value: ~
340+
prescribe_ozone:
341+
help: "Prescribe time and spatially varying ozone from a file [`false` (default), `true`]"
342+
value: false
343+
co2_model:
344+
help: "What CO2 concentration to use for RRTGMP. When fixed, it is set to 397.547 parts per million. Otherwise, it is read from the MaunaLoa measuraments. [`nothing` (default), `Fixed`, `MaunaLoa`]"
345+
value: ~
340346
detect_restart_file:
341347
help: "When true, try finding a restart file and use it to restart the simulation. Only works with ActiveLink."
342348
value: false
@@ -346,9 +352,6 @@ reproducible_restart:
346352
prescribed_aerosols:
347353
help: "Which aerosols to add. List of keys from the data file (e.g., CB1, CB2)."
348354
value: []
349-
time_varying_trace_gases:
350-
help: "Trace gases that vary in time, e.g. [`CO2`, `O3`]. This setting is only relevant when using RRTMGP. Currently, only `CO2` and `O3` are supported. All other trace gases set fixed to default values from ClimaParams."
351-
value: []
352355
# TODO: remove once https://github.com/CliMA/ClimaAtmos.jl/issues/2873 is closed
353356
call_cloud_diagnostics_per_stage:
354357
help: "A temporary Bool for calling cloud diagnostics every stage"

config/gpu_configs/gpu_aquaplanet_dyamond_diag_1process.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ dt_save_state_to_disk: 12hours
22
moist: equil
33
precip_model: 0M
44
rad: allskywithclear
5+
co2_model: fixed
56
idealized_insolation: false
67
dt_rad: 1hours
78
vert_diff: "DecayWithHeightDiffusion"
@@ -13,6 +14,6 @@ output_default_diagnostics: false
1314
diagnostics:
1415
- short_name: ["pfull", "wa", "va", "rv", "ke"]
1516
period: "12hours"
16-
time_varying_trace_gases: ["O3"]
17+
prescribe_ozone: true
1718
aerosol_radiation: true
1819
prescribed_aerosols: ["CB1", "CB2", "DST01", "DST02", "DST03", "DST04", "DST05", "OC1", "OC2", "SO4", "SSLT01", "SSLT02", "SSLT03", "SSLT04", "SSLT05"]

config/gpu_configs/gpu_aquaplanet_dyamond_ss.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ vert_diff: "DecayWithHeightDiffusion"
1010
surface_setup: "DefaultMoninObukhov"
1111
t_end: "1days"
1212
toml: [toml/longrun_aquaplanet.toml]
13-
time_varying_trace_gases: ["O3"]
13+
prescribe_ozone: true
1414
aerosol_radiation: true
1515
prescribed_aerosols: ["CB1", "CB2", "DST01", "DST02", "DST03", "DST04", "DST05", "OC1", "OC2", "SO4", "SSLT01", "SSLT02", "SSLT03", "SSLT04", "SSLT05"]

config/gpu_configs/gpu_aquaplanet_dyamond_summer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ edmfx_sgs_diffusive_flux: true
1111
surface_setup: "DefaultMoninObukhov"
1212
t_end: "1hours"
1313
toml: [toml/longrun_aquaplanet.toml]
14-
time_varying_trace_gases: ["O3"]
14+
prescribe_ozone: true
1515
aerosol_radiation: true
1616
prescribed_aerosols: ["CB1", "CB2", "DST01", "DST02", "DST03", "DST04", "DST05", "OC1", "OC2", "SO4", "SSLT01", "SSLT02", "SSLT03", "SSLT04", "SSLT05"]
1717
start_date: "20160801"

config/gpu_configs/gpu_aquaplanet_dyamond_ws_1process.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ vert_diff: "DecayWithHeightDiffusion"
1010
surface_setup: "DefaultMoninObukhov"
1111
t_end: "1days"
1212
toml: [toml/longrun_aquaplanet.toml]
13-
time_varying_trace_gases: ["O3"]
13+
prescribe_ozone: true
1414
aerosol_radiation: true
1515
prescribed_aerosols: ["CB1", "CB2", "DST01", "DST02", "DST03", "DST04", "DST05", "OC1", "OC2", "SO4", "SSLT01", "SSLT02", "SSLT03", "SSLT04", "SSLT05"]

config/gpu_configs/gpu_aquaplanet_dyamond_ws_2process.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ vert_diff: "DecayWithHeightDiffusion"
1111
surface_setup: "DefaultMoninObukhov"
1212
t_end: "1days"
1313
toml: [toml/longrun_aquaplanet.toml]
14-
time_varying_trace_gases: ["O3"]
14+
prescribe_ozone: true
1515
aerosol_radiation: true
1616
prescribed_aerosols: ["CB1", "CB2", "DST01", "DST02", "DST03", "DST04", "DST05", "OC1", "OC2", "SO4", "SSLT01", "SSLT02", "SSLT03", "SSLT04", "SSLT05"]

config/gpu_configs/gpu_aquaplanet_dyamond_ws_4process.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ vert_diff: "DecayWithHeightDiffusion"
1313
surface_setup: "DefaultMoninObukhov"
1414
t_end: "1days"
1515
toml: [toml/longrun_aquaplanet.toml]
16-
time_varying_trace_gases: ["O3"]
16+
prescribe_ozone: true
1717
aerosol_radiation: true
1818
prescribed_aerosols: ["CB1", "CB2", "DST01", "DST02", "DST03", "DST04", "DST05", "OC1", "OC2", "SO4", "SSLT01", "SSLT02", "SSLT03", "SSLT04", "SSLT05"]

0 commit comments

Comments
 (0)