Skip to content

Commit c84a9af

Browse files
authored
Merge pull request #3729 from CliMA/zs/progedmf_repro_test
add reproducibility test for prognostic edmf
2 parents 5837f0b + 51b1bab commit c84a9af

File tree

7 files changed

+31
-4
lines changed

7 files changed

+31
-4
lines changed

.buildkite/pipeline.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -785,9 +785,14 @@ steps:
785785
julia --color=yes --project=.buildkite .buildkite/ci_driver.jl
786786
--config_file $CONFIG_PATH/prognostic_edmfx_bomex_implicit_column.yml
787787
--job_id prognostic_edmfx_bomex_column_implicit
788+
789+
julia --color=yes --project=.buildkite reproducibility_tests/test_mse.jl
790+
--job_id prognostic_edmfx_bomex_column_implicit
791+
--out_dir prognostic_edmfx_bomex_column_implicit/output_active
788792
artifact_paths: "prognostic_edmfx_bomex_column_implicit/output_active/*"
789793
agents:
790794
slurm_mem: 20GB
795+
slurm_constraint: icelake|cascadelake|skylake|epyc
791796

792797
- label: ":genie: Prognostic EDMFX Dycoms RF01 in a column"
793798
command: >
@@ -851,9 +856,14 @@ steps:
851856
julia --color=yes --project=.buildkite .buildkite/ci_driver.jl
852857
--config_file $CONFIG_PATH/prognostic_edmfx_aquaplanet.yml
853858
--job_id prognostic_edmfx_aquaplanet
859+
860+
julia --color=yes --project=.buildkite reproducibility_tests/test_mse.jl
861+
--job_id prognostic_edmfx_aquaplanet
862+
--out_dir prognostic_edmfx_aquaplanet/output_active
854863
artifact_paths: "prognostic_edmfx_aquaplanet/output_active/*"
855864
agents:
856865
slurm_mem: 20GB
866+
slurm_constraint: icelake|cascadelake|skylake|epyc
857867

858868
- group: "GPU"
859869
steps:

config/model_configs/prognostic_edmfx_aquaplanet.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This jobs takes too long so we use a lower top and coarser vertical resolution
1+
# This job takes too long so we use a lower top and coarser vertical resolution
22
# z_max: 60000.0
33
# z_elem: 31
44
# dz_bottom: 50.0
@@ -15,6 +15,14 @@ edmfx_nh_pressure: true
1515
edmfx_filter: true
1616
edmfx_sgs_mass_flux: true
1717
edmfx_sgs_diffusive_flux: true
18+
implicit_diffusion: true
19+
implicit_sgs_advection: true
20+
# This job crashes when setting the following to true. There is potentially a bug.
21+
# implicit_sgs_entr_detr: true
22+
# implicit_sgs_nh_pressure: true
23+
# implicit_sgs_mass_flux: true
24+
approximate_linear_solve_iters: 2
25+
max_newton_iters_ode: 3
1826
moist: equil
1927
cloud_model: "quadrature_sgs"
2028
precip_model: 0M
@@ -23,6 +31,7 @@ t_end: 1hours
2331
dt_save_state_to_disk: 600secs
2432
toml: [toml/prognostic_edmfx.toml]
2533
output_default_diagnostics: false
34+
reproducibility_test: true
2635
diagnostics:
2736
- short_name: [ts, ta, thetaa, ha, pfull, rhoa, ua, va, wa, hfes, hur, hus, cl, clw, cli, evspsbl, pr, rsd, rsu, rld, rlu]
2837
reduction_time: average

config/model_configs/prognostic_edmfx_bomex_implicit_column.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ perturb_initstate: false
3131
dt: "50secs"
3232
t_end: "6hours"
3333
dt_save_state_to_disk: "10mins"
34+
reproducibility_test: true
3435
toml: [toml/prognostic_edmfx_bomex.toml]
3536
netcdf_interpolation_num_points: [2, 2, 60]
3637
diagnostics:

reproducibility_tests/ref_counter.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
222
1+
223
22

33
# **README**
44
#
@@ -20,6 +20,10 @@
2020

2121

2222
#=
23+
24+
223
25+
- Add some more jobs for reproductibility tests
26+
2327
222
2428
- We don't know why, but aquaplanet_nonequil_allsky_gw_res and aquaplanet_equil_allsky_gw_raw_zonalasym
2529
seemed to not produce the same result between the merge-queue branch and the main branch.

reproducibility_tests/reproducibility_test_job_ids.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ reproducibility_test_job_ids() = [
55
"aquaplanet_equil_allsky_gw_raw_zonalasym",
66
"diagnostic_edmfx_aquaplanet",
77
"single_column_hydrostatic_balance_ft64",
8+
"prognostic_edmfx_bomex_column_implicit",
9+
"prognostic_edmfx_aquaplanet",
810
]

src/solver/types.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,7 @@ Base.@kwdef struct AtmosModel{
519519
DM,
520520
SAM,
521521
SEDM,
522+
SNPM,
522523
SMM,
523524
VS,
524525
SL,
@@ -559,7 +560,7 @@ Base.@kwdef struct AtmosModel{
559560
"""sgs_entr_detr_mode == Implicit() only works if sgs_adv_mode == Implicit()"""
560561
sgs_entr_detr_mode::SEDM = nothing
561562
"""sgs_nh_pressure_mode == Implicit() only works if sgs_adv_mode == Implicit()"""
562-
sgs_nh_pressure_mode::SEDM = nothing
563+
sgs_nh_pressure_mode::SNPM = nothing
563564
"""sgs_mf_mode == Implicit() only works if sgs_adv_mode == Implicit() and diff_mode == Implicit()"""
564565
sgs_mf_mode::SMM = nothing
565566
viscous_sponge::VS = nothing

toml/prognostic_edmfx.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ value = 0
4444
value = 40.0
4545

4646
[precipitation_timescale]
47-
value = 10
47+
value = 100

0 commit comments

Comments
 (0)