Repository navigation
E3SM-dycore regression tests and the bugs they found (cam6_4_211_ss.02) - #109
Merged
Merged
Conversation
New composable testmods: outfrq9s_thetal_hy, outfrq9s_thetal_kokkos_hy (se_theta_hydrostatic_mode=.true., se_tstep_type=2), outfrq9s_thetal{,_kokkos}_rstunstruct (se_write_restart_unstruct=.true.), outfrq9s_thetal_interp (GLL interpolated output), outfrq9s_preqx (CAM_TARGET=preqx).
New testlist entries (37 tests, 122 machine/compiler instances): aux_cam_e3sm (tier-1 BFB gate for theta-l and theta-l_kokkos: SMS_D NH and hydrostatic, ERS, ERP, PEM, PET, ERI_D on ne3pg3 FHISTC_LTso; ERS ne16pg3; SMS_D FKESSLER ne16; SMS_D/ERS QPC6 GLL ne3; ne30 F2000climo ERS/ERP and FHISTC_MTso SMS on derecho intel), aux_cam_e3sm_perf (PFS timing), aux_cam_preqx, aux_cam_e3sm_unify (tests that require the unified SE interface: unstructured restart, interpolated output). Test definitions only; no source changes.
se_tstep_type=2 is not a theta-l timestepper (Fortran: bad choice of tstep_type; Kokkos: unsupported time_step_type). 5 (explicit KG5) is the non-IMEX scheme both Fortran and Kokkos theta-l implement. PET_Ln9 removed for theta-l_kokkos: CAM refuses threads for that target (dyn_readnl: set NTHRDS_ATM=1). theta-l PET kept.
ERI .ref2 (hybrid) runs failed in CTSM restFileMod (finidat year-consistency check for transient compsets). The existing CAM ERI tests use the outfrq3s_eri testmod, which sets check_finidat_year_consistency=.false. in user_nl_clm. New testmods outfrq3s_eri_thetal and outfrq3s_eri_thetal_kokkos include outfrq3s_eri and set CAM_TARGET; the two E3SM-dycore ERI_D_Ln18 tests now use them.
…a_hydrostatic_mode) The restart writer only defines and writes W and PHINH when not in hydrostatic mode, but read_restart_dynamics, read_elem and read_unstruct looked for and read them unconditionally, so every hydrostatic theta-l restart aborted with "read_restart_dynamics: cannot find W". As in E3SM/EAM, skip the lookups and reads in hydrostatic mode and zero w_i and phinh_i (not prognostic; phinh_i is rediagnosed). Found by the new ERS_Ln9 ...cam-outfrq9s_thetal_hy and _kokkos_hy tests.
HOMME C++ (ComposeTransportImpl, KokkosKernels SIMD templates) does not compile with nvc++ on derecho. Fortran theta-l nvhpc tests are kept.
On izumi (MVAPICH2) the model's MPI_Win_shared_query returns size 0 and no address to every non-leader rank, so node-shared tables (soil_erod, phys_prop, mo_jlong, tracer_data) were null on 23 of 24 ranks. init_comms now probes a small window; if any rank cannot see it (or cam_shmem_force_private is set), every rank becomes its own node (node_size 1, all leaders, leader_comm = all ranks), so callers hold private copies and answers are unchanged. The atm log reports the probe result (PASSED/FAILED) and whether shared or private memory is used. New namelist cam_shmem_nl/cam_shmem_force_private (default .false., not written to atm_in by default); cam_shmem_init now runs after read_namelist.
…d source From ESCOMP/CAM PR ESCOMP#1643 (commit 0b0bd23, fix_shared_read_and_carry): - the in-memory carry-forward of a time record also requires the same file name, since PIO file handles can be reused across files; - the node-shared source field is read on masterproc only and broadcast to the node leaders over cam_shmem_leader_comm (was: every leader read it).
SHM (SystemTestsCompareTwo, one build): run one with default cam_shmem settings, run two with cam_shmem_force_private = .true.; history must be identical. Where the shared-window probe passes (derecho) this proves the shared tables match private memory; where it fails (izumi) it exercises the fallback. Tests in aux_cam: SHM_D_Ln9.ne3pg3_ne3pg3_mt232.FHISTC_LTso.cam-outfrq9s (phys_prop, soil_erod, tracer_data) SHM_D_Ln3.f10_f10_mg37.QPMOZ.cam-outfrq3s_chemproc (mo_jlong)
aux_cam_e3sm (gate): derecho intel runs the full theta-l/theta-l_kokkos set
(SMS_D, ERS, ERP, PEM, PET, ERI_D, ne16pg3, QPC6 GLL, FKESSLER, ne30);
derecho gnu runs SMS_D/ERS core (NH and hydrostatic), FKESSLER and QPC6 SMS_D;
izumi gnu runs the SMS_D/ERS core.
Removed from theta-l testing until their blockers are fixed (issues filed):
derecho nvhpc - HOMME C++ (Kokkos) does not build with nvc++; Fortran ERP
not reproducible across layout/threads (under investigation)
izumi nag - E3SM HOMME sort_mod.F90 declaration order (upstream)
izumi intel - COMPOSE segfault (under investigation)
New category aux_cam_e3sm_canary: SMS_D_Ln9 ne3pg3 FHISTC_LTso theta-l on derecho
nvhpc, to notice when NVHPC works again. aux_cam_e3sm_unify moves from izumi gnu
to derecho gnu. The pre-existing FKESSLER ERS_Ln27/ERP_Ln27 theta-l tests keep
aux_cam on derecho intel and izumi gnu only.
jtruesdal
added a commit
that referenced
this pull request
Oct 29, 2026
Senh homme update bringing in Mark Taylor's split-form theta advection and tensor sponge layer. Review summary (prepared with Claude; changes dry-run in a sandbox clone; rebase onto PR 1 verified by identical patch-ids; merge sequence #109 → #99 simulated and clean) Scope: HOMME update 057df66 → E3SM master b70b675a7b (Mark Taylor’s split-form theta advection; tensor sponge-layer Laplacian, E3SM PR #8642), plus two new namelist options and the ss.03 ChangeLog entry. 6 commits, 8 files. Changes reviewed: se_laplace_scaling (default 0: constant-coefficient sponge as before; > 0: tensor sponge, with se_nu_top in tensor-scaled units). se_tom_sponge_start (hPa, default 0: HOMME’s standard profile; > 0 sets where the top sponge begins). build-namelist guard: with the tensor sponge, se_nu_top defaults to 5.0e-7, and values > 1.0e-2 (m²/s) stop with an error, preventing a silent ~10¹² viscosity error. Read and broadcast in namelist_mod.F90/dyn_comp.F90; definitions and defaults for theta-l and preqx. Testing (Derecho, vs the ss.02 gate baselines stormspeed_2647799a_e3sm_*): GNU aux_cam_e3sm: 16/16 BFB. Intel aux_cam_e3sm: 30/33 BFB; the remaining 3 ne30 tests were in progress at merge. Namelist: only the two new variables, in every test; se_nu_top unchanged. CAM’s other aux_cam tests don’t use HOMME code and weren’t rerun. GitHub CI: CIRRUS runners offline at merge. Answers: none changed with default settings (BFB); the new options change answers only when set. Merge: “Create a merge commit”. Baselines: stormspeed_d3d38547_e3sm_intel/_gnu.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a regression suite for the E3SM HOMME dycores (
CAM_TARGET=theta-l,theta-l_kokkos) and fixes the problems it exposed: a hydrostatic restart bug, MPI-3 shared windows that are unusable on Izumi, and atracer_datacarry-forward bug. A newSHMsystem test checks that node-shared and private memory give identical answers.Tests added
Platforms left out of theta-l testing until their blockers are fixed: derecho nvhpc (#100, #101), izumi nag (#102), izumi intel (#103).
Fixes
src/dynamics/senh/restart_dynamics.F90): the reader always read W and PHINH, which hydrostatic runs don't write ("cannot find W"). Skip them in hydrostatic mode and zerow_i/phinh_i, as E3SM does.src/utils/cam_shmem_mod.F90): with the Intel and NAG MVAPICH2 builds,MPI_Win_shared_queryreturns size 0 and no address to every non-leader rank inside CESM, so the node-shared tables were null on 23/24 ranks.init_commsnow probes a small window collectively and, if any rank can't see it, gives every rank private copies (answers unchanged). The atm log reportsprobe PASSED/FAILEDand the mode. New namelist switchcam_shmem_force_private(not in the defaultatm_in).cam_shmem_initmoved afterread_namelist.Testing
stormspeed_2647799a_e3sm_{intel,gnu}).Answers
No changes expected from cam_shmem (SHM BFB) or the restart fix.
tracer_data: only where the old carry-forward matched a record from the wrong file: <confirm from aux_cam>.Related issues
#100 NVHPC + HOMME C++, #101 NVHPC decomposition reproducibility, #102 E3SM sort_mod.F90 (NAG), #103 Izumi Intel COMPOSE segfault, #104 preqx build, #105 test_driver.sh
{$BL_TESTDIR}, #106 cam_shmem on Izumi.