Skip to content

Commit

Permalink
Push local bugfix for DYAMOND init
Browse files Browse the repository at this point in the history
Adds config file to test initial conditions from NetCDF artifacts
  new file:   dyamond_init_lowres.yml
  • Loading branch information
akshaysridhar committed Feb 20, 2025
1 parent 719cc53 commit 2c6a664
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,19 @@ steps:
artifact_paths: "held_suarez_equil/output_active/*"
agents:
slurm_constraint: icelake|cascadelake|skylake|epyc

- label: ":computer: dyamond initial conditions + interpolation test (EDOnly)"
command: >
julia --color=yes --project=.buildkite .buildkite/ci_driver.jl
--config_file $CONFIG_PATH/dyamond_init_lowres.yml
--job_id dyamond_init_lowres
julia --color=yes --project=.buildkite reproducibility_tests/test_mse.jl
--job_id dyamond_init_lowres
--out_dir dyamond_init_lowres/output_active
artifact_paths: "dyamond_init_lowres/output_active/*"
agents:
slurm_constraint: icelake|cascadelake|skylake|epyc

- group: "Sphere Examples (Aquaplanet)"
steps:
Expand Down
24 changes: 24 additions & 0 deletions config/model_configs/dyamond_init_lowres.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
h_elem: 8
z_max: 60000.0
z_elem: 63
dz_bottom: 30.0
rayleigh_sponge: true
viscous_sponge: true
implicit_diffusion: true
approximate_linear_solve_iters: 2
topography: "Earth"
start_date: "20160801"
initial_condition: "artifact\"DYAMOND_SUMMER_ICS_p98deg\"/DYAMOND_SUMMER_ICS_p98deg.nc"
moist: "equil"
dt: "200secs"
t_end: "200secs"
dt_save_state_to_disk: "10days"
rad: "allskywithclear"
insolation: "timevarying"
dt_rad: "1hours"
dt_cloud_fraction: "1hours"
surface_setup: "DefaultMoninObukhov"
precip_model: "0M"
turbconv: "edonly_edmfx"
edmfx_sgs_diffusive_flux: true
toml: [toml/longrun_aquaplanet.toml]
6 changes: 5 additions & 1 deletion reproducibility_tests/ref_counter.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
215
216

# **README**
#
Expand All @@ -21,6 +21,10 @@

#=
216
- Adds DYAMOND initialization to CI tests (exercises interpolation from NetCDF
and initial condition overwrite feature)
215
- Update dependencies, including ClimaCore, which updated how metric terms are
computed
Expand Down
2 changes: 1 addition & 1 deletion src/initial_conditions/initial_conditions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ function overwrite_initial_conditions!(

if hasproperty(Y.c, :sgs⁰) && hasproperty(Y.c.sgs⁰, :ρatke)
# NOTE: This is not the most consistent, but it is better than NaNs
fill!(Y.c.ρatke, 0)
fill!(Y.c.sgs⁰.ρatke, 0)
end

return nothing
Expand Down

0 comments on commit 2c6a664

Please sign in to comment.