Skip to content

Commit 2c6fe62

Browse files
authored
Merge pull request #4169 from CliMA/oa/fix_trace_gases_new
Refactor trace gases
2 parents 0116312 + d8ddcfd commit 2c6fe62

File tree

45 files changed

+269
-362
lines changed

Some content is hidden

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

45 files changed

+269
-362
lines changed

NEWS.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ ClimaAtmos.jl Release Notes
44
main
55
-------
66

7+
v0.33.0
8+
-------
9+
- ![#4169](https://github.com/CliMA/ClimaAtmos.jl/pull/4169) [badge-💥breaking]
10+
Remove the options `co2_model` and `prescribe_ozone`. These are both fixed by
11+
default now, and can be set to time-varying by including one or both in the
12+
option `time_varying_trace_gases: ["CO2", "O3]`.
713

814
v0.32.0
915
-------
10-
- ![][badge-💥breaking] Remove the options `co2_model` and `prescribe_ozone`.
11-
These are both fixed by default now, and can be set to time-varying by
12-
including one or both in the option `time_varying_trace_gases: ["CO2", "O3]`.
13-
1416
- PR [#4162](https://github.com/CliMA/ClimaAtmos.jl/pull/4162) adds an option for
1517
reproducible restart. It is set to false by default. This shouldn't affect restart
1618
in the coupler as the coupler save the cache for restarting.

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ClimaAtmos"
22
uuid = "b2c96348-7fb7-4fe0-8da9-78d88439e717"
33
authors = ["Climate Modeling Alliance"]
4-
version = "0.32.0"
4+
version = "0.33.0"
55

66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"

calibration/experiments/gcm_driven_scm/model_config_diagnostic.yml

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

calibration/experiments/gcm_driven_scm/model_config_prognostic.yml

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

calibration/test/model_config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ output_dir: calibration_end_to_end_test
88
output_default_diagnostics: false
99
dt_rad: 6hours
1010
rad: clearsky
11-
co2_model: fixed
1211
diagnostics:
1312
- reduction_time: average
1413
short_name: rsut

config/default_configs/default_config.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -337,12 +337,6 @@ 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: ~
346340
detect_restart_file:
347341
help: "When true, try finding a restart file and use it to restart the simulation. Only works with ActiveLink."
348342
value: false
@@ -352,6 +346,9 @@ reproducible_restart:
352346
prescribed_aerosols:
353347
help: "Which aerosols to add. List of keys from the data file (e.g., CB1, CB2)."
354348
value: []
349+
time_varying_trace_gases:
350+
help: "Trace gases that vary in time, e.g. [\"CO2\", \"O3\"]. Currently, only \"CO2\" and \"O3\" are supported. All other trace gases set fixed to default values from ClimaParams."
351+
value: []
355352
# TODO: remove once https://github.com/CliMA/ClimaAtmos.jl/issues/2873 is closed
356353
call_cloud_diagnostics_per_stage:
357354
help: "A temporary Bool for calling cloud diagnostics every stage"

config/gpu_configs/gpu_aquaplanet_dyamond_diag_1process.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ dt_save_state_to_disk: 12hours
22
moist: equil
33
precip_model: 0M
44
rad: allskywithclear
5-
co2_model: fixed
65
idealized_insolation: false
76
dt_rad: 1hours
87
vert_diff: "DecayWithHeightDiffusion"
@@ -14,6 +13,6 @@ output_default_diagnostics: false
1413
diagnostics:
1514
- short_name: ["pfull", "wa", "va", "rv", "ke"]
1615
period: "12hours"
17-
prescribe_ozone: true
16+
time_varying_trace_gases: ["O3"]
1817
aerosol_radiation: true
1918
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-
prescribe_ozone: true
13+
time_varying_trace_gases: ["O3"]
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-
prescribe_ozone: true
14+
time_varying_trace_gases: ["O3"]
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-
prescribe_ozone: true
13+
time_varying_trace_gases: ["O3"]
1414
aerosol_radiation: true
1515
prescribed_aerosols: ["CB1", "CB2", "DST01", "DST02", "DST03", "DST04", "DST05", "OC1", "OC2", "SO4", "SSLT01", "SSLT02", "SSLT03", "SSLT04", "SSLT05"]

0 commit comments

Comments
 (0)