Skip to content

Commit bde2725

Browse files
committed
add test: aquaplanet with 2M; also fixing short names
1 parent 5f8bc43 commit bde2725

File tree

6 files changed

+87
-46
lines changed

6 files changed

+87
-46
lines changed

.buildkite/pipeline.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,17 @@ steps:
9494
--job_id single_column_precipitation_2M_test
9595
artifact_paths: "single_column_precipitation_2M_test/output_active/*"
9696

97+
- label: ":umbrella: 2-moment precipitation aquaplanet nonequil allsky"
98+
command: >
99+
julia --color=yes --project=.buildkite .buildkite/ci_driver.jl
100+
--config_file $CONFIG_PATH/aquaplanet_nonequil_allsky_2M.yml
101+
--job_id aquaplanet_nonequil_allsky_2M
102+
103+
artifact_paths: "aquaplanet_nonequil_allsky_2M/output_active/*"
104+
agents:
105+
slurm_mem: 20GB
106+
slurm_constraint: icelake|cascadelake|skylake|epyc
107+
97108
- group: "Gravity wave"
98109
steps:
99110

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
z_max: 60000.0
2+
z_elem: 31
3+
dz_bottom: 50.0
4+
rayleigh_sponge: true
5+
dt: "360secs"
6+
t_end: "1days"
7+
dt_save_state_to_disk: "24hours"
8+
vert_diff: "DecayWithHeightDiffusion"
9+
implicit_diffusion: true
10+
approximate_linear_solve_iters: 2
11+
moist: "nonequil"
12+
precip_model: "2M"
13+
rad: "allskywithclear"
14+
aerosol_radiation: true
15+
prescribe_clouds_in_radiation: true
16+
radiation_reset_rng_seed: true
17+
insolation: "timevarying"
18+
non_orographic_gravity_wave: true
19+
orographic_gravity_wave: "gfdl_restart"
20+
surface_setup: "DefaultMoninObukhov"
21+
prescribe_ozone: true
22+
reproducibility_test: true
23+
prescribed_aerosols: ["SO4", "CB1", "OC1", "DST01", "SSLT01"]
24+
diagnostics:
25+
- short_name: [edt, evu, mmrso4, mmrbcpo, mmrocpo, mmrdust, mmrss, loadss, o3, od550aer, odsc550aer]
26+
reduction_time: average
27+
period: 1days
28+
- short_name: [reffclw, reffcli]
29+
period: 6hours

config/model_configs/single_column_precipitation_2M_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ implicit_diffusion: true
1616
approximate_linear_solve_iters: 2
1717
reproducibility_test: false
1818
diagnostics:
19-
- short_name: [hus, clw, cli, husra, hussn, clwnm, clinm, nmra, nmsn, ta, wa]
19+
- short_name: [hus, clw, cli, husra, hussn, cdnc, cdinc, ncra, ncsn, ta, wa]
2020
period: 500secs
2121
- short_name: [pr]
2222
period: 10secs

post_processing/ci_plots.jl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -644,10 +644,10 @@ function make_plots(
644644
"husra",
645645
"hussn",
646646
"ta",
647-
"clwnm",
648-
"clinm",
649-
"nmra",
650-
"nmsn",
647+
"cdnc",
648+
"cdinc",
649+
"ncra",
650+
"ncsn",
651651
]
652652
figsize = (1200, 1000)
653653
pr_row = 5
@@ -1153,6 +1153,7 @@ AquaplanetPlots = Union{
11531153
Val{:edonly_edmfx_aquaplanet},
11541154
Val{:mpi_sphere_aquaplanet_rhoe_equil_clearsky},
11551155
Val{:aquaplanet_nonequil_allsky_gw_res},
1156+
Val{:aquaplanet_nonequil_allsky_2M},
11561157
Val{:rcemipii_sphere_diagnostic_edmfx},
11571158
Val{:longrun_aquaplanet_allsky_0M},
11581159
Val{:longrun_aquaplanet_allsky_diagedmf_0M},

src/diagnostics/core_diagnostics.jl

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -860,12 +860,12 @@ add_diagnostic_variable!(
860860
compute! = compute_hussn!,
861861
)
862862

863-
compute_clwnm!(out, state, cache, time) =
864-
compute_clwnm!(out, state, cache, time, cache.atmos.precip_model)
865-
compute_clwnm!(_, _, _, _, model::T) where {T} =
866-
error_diagnostic_variable("clwnm", model)
863+
compute_cdnc!(out, state, cache, time) =
864+
compute_cdnc!(out, state, cache, time, cache.atmos.precip_model)
865+
compute_cdnc!(_, _, _, _, model::T) where {T} =
866+
error_diagnostic_variable("cdnc", model)
867867

868-
function compute_clwnm!(
868+
function compute_cdnc!(
869869
out,
870870
state,
871871
cache,
@@ -880,23 +880,23 @@ function compute_clwnm!(
880880
end
881881

882882
add_diagnostic_variable!(
883-
short_name = "clwnm",
884-
long_name = "Number Concentration of Cloud Liquid Water",
885-
standard_name = "number_concentration_of_cloud_liquid_water",
886-
units = "1 m^-3",
883+
short_name = "cdnc",
884+
long_name = "Cloud Liquid Droplet Number Concentration",
885+
standard_name = "number_concentration_of_cloud_liquid_water_particles_in_air",
886+
units = "m^-3",
887887
comments = """
888888
This is calculated as the number of cloud liquid water droplets in the grid
889889
cell divided by the cell volume.
890890
""",
891-
compute! = compute_clwnm!,
891+
compute! = compute_cdnc!,
892892
)
893893

894-
compute_clinm!(out, state, cache, time) =
895-
compute_clinm!(out, state, cache, time, cache.atmos.precip_model)
896-
compute_clinm!(_, _, _, _, model::T) where {T} =
897-
error_diagnostic_variable("clinm", model)
894+
compute_cdinc!(out, state, cache, time) =
895+
compute_cdinc!(out, state, cache, time, cache.atmos.precip_model)
896+
compute_cdinc!(_, _, _, _, model::T) where {T} =
897+
error_diagnostic_variable("cdinc", model)
898898

899-
function compute_clinm!(
899+
function compute_cdinc!(
900900
out,
901901
state,
902902
cache,
@@ -911,23 +911,23 @@ function compute_clinm!(
911911
end
912912

913913
add_diagnostic_variable!(
914-
short_name = "clinm",
915-
long_name = "Number Concentration of Cloud Ice",
916-
standard_name = "number_concentration_of_cloud_ice",
917-
units = "1 m^-3",
914+
short_name = "cdinc",
915+
long_name = "Cloud Ice Chrystal Number Concentration",
916+
standard_name = "number_concentration_of_cloud_ice_chrystals_in_air",
917+
units = "m^-3",
918918
comments = """
919919
This is calculated as the number of cloud ice chrystals in the grid
920920
cell divided by the cell volume.
921921
""",
922-
compute! = compute_clinm!,
922+
compute! = compute_cdinc!,
923923
)
924924

925-
compute_nmra!(out, state, cache, time) =
926-
compute_nmra!(out, state, cache, time, cache.atmos.precip_model)
927-
compute_nmra!(_, _, _, _, model::T) where {T} =
928-
error_diagnostic_variable("nmra", model)
925+
compute_ncra!(out, state, cache, time) =
926+
compute_ncra!(out, state, cache, time, cache.atmos.precip_model)
927+
compute_ncra!(_, _, _, _, model::T) where {T} =
928+
error_diagnostic_variable("ncra", model)
929929

930-
function compute_nmra!(
930+
function compute_ncra!(
931931
out,
932932
state,
933933
cache,
@@ -942,23 +942,23 @@ function compute_nmra!(
942942
end
943943

944944
add_diagnostic_variable!(
945-
short_name = "nmra",
946-
long_name = "Number Concentration of Rain",
947-
standard_name = "number_concentration_of_rain",
948-
units = "1 m^-3",
945+
short_name = "ncra",
946+
long_name = "Raindrop Number Concentration",
947+
standard_name = "number_concentration_of_raindrops_in_air",
948+
units = "m^-3",
949949
comments = """
950950
This is calculated as the number of raindrops in the grid cell divided
951951
by the cell volume.
952952
""",
953-
compute! = compute_nmra!,
953+
compute! = compute_ncra!,
954954
)
955955

956-
compute_nmsn!(out, state, cache, time) =
957-
compute_nmsn!(out, state, cache, time, cache.atmos.precip_model)
958-
compute_nmsn!(_, _, _, _, model::T) where {T} =
959-
error_diagnostic_variable("nmsn", model)
956+
compute_ncsn!(out, state, cache, time) =
957+
compute_ncsn!(out, state, cache, time, cache.atmos.precip_model)
958+
compute_ncsn!(_, _, _, _, model::T) where {T} =
959+
error_diagnostic_variable("ncsn", model)
960960

961-
function compute_nmsn!(
961+
function compute_ncsn!(
962962
out,
963963
state,
964964
cache,
@@ -973,15 +973,15 @@ function compute_nmsn!(
973973
end
974974

975975
add_diagnostic_variable!(
976-
short_name = "nmsn",
977-
long_name = "Number Concentration of Snow",
978-
standard_name = "number_concentration_of_snow",
979-
units = "1 m^-3",
976+
short_name = "ncsn",
977+
long_name = "Snowflake Number Concentration",
978+
standard_name = "number_concentration_of_snowflakes_in_air",
979+
units = "m^-3",
980980
comments = """
981981
This is calculated as the number of snow flakes in the grid cell divided
982982
by the cell volume.
983983
""",
984-
compute! = compute_nmsn!,
984+
compute! = compute_ncsn!,
985985
)
986986

987987
###

src/diagnostics/default_diagnostics.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ function default_diagnostics(
236236
start_date;
237237
output_writer,
238238
)
239-
precip_diagnostics = ["husra", "hussn", "clwnm", "clinm", "nmra", "nmsn"]
239+
precip_diagnostics = ["husra", "hussn", "cdnc", "cdinc", "ncra", "ncsn"]
240240

241241
average_func = frequency_averages(duration)
242242

0 commit comments

Comments
 (0)