Skip to content

E3SM-dycore regression tests and the bugs they found (cam6_4_211_ss.02) - #109

Merged
jtruesdal merged 11 commits into
stormspeedfrom
e3sm_dycore_tests
Oct 29, 2026
Merged

jtruesdal merged 11 commits into
stormspeedfrom
e3sm_dycore_tests

Conversation

@jtruesdal

Copy link
Copy Markdown
Collaborator

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 a tracer_data carry-forward bug. A new SHM system test checks that node-shared and private memory give identical answers.

Tests added

Category | Platforms | Content -- | -- | -- aux_cam_e3sm (gate) | derecho intel (33), derecho gnu (16), izumi gnu (12) | SMS_D, ERS, ERP, PEM, PET, ERI_D; NH and hydrostatic; ne3pg3, ne3 GLL (QPC6), FKESSLER ne16, ne16pg3, ne30 aux_cam_e3sm_canary | derecho nvhpc | theta-l SMS_D smoke test aux_cam_e3sm_unify | derecho intel, gnu | unstructured restart, GLL interpolation (for the planned src/dynamics/se unification) aux_cam_e3sm_perf | derecho intel | PFS ne30 aux_cam_preqx | derecho intel, izumi gnu | preqx (does not build yet, #104) aux_cam (SHM) | derecho intel/gnu, izumi gnu/nag/intel | shared vs private cam_shmem memory, BFB

Platforms left out of theta-l testing until their blockers are fixed: derecho nvhpc (#100, #101), izumi nag (#102), izumi intel (#103).

Fixes

Testing

  • derecho/intel/aux_cam_e3sm: 33/33 PASS; derecho/gnu/aux_cam_e3sm: 16/16 PASS (baselines stormspeed_2647799a_e3sm_{intel,gnu}).
  • SHM on derecho (intel FHISTC_LTso and QPMOZ, gnu FHISTC_LTso): PASS; atm logs confirm shared memory in run one and private memory in run two.
  • Hydrostatic restart: ERS theta-l and theta-l_kokkos, intel and gnu: 4/4 PASS (previously "cannot find W").
  • derecho aux_cam (intel, nvhpc) vs cam6_4_211_ss.00: <results>
  • izumi/gnu aux_cam_e3sm: <results>; izumi SHM (gnu, nag, intel): <results, probe result per compiler>; izumi intel theta-l ([NCAR/StormSPEED] theta-l on izumi Intel: segfault in COMPOSE (compose_slmm_islmpi.hpp) #103 check): <results>
  • izumi aux_cam (gnu, nag): <results>

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.

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.
Copilot AI balanced review requested due to automatic review settings October 29, 2026 03:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@jtruesdal jtruesdal added the ready_for_ci This PR is ready for CI tests on CIRRUS cloud label Oct 29, 2026
Copilot AI balanced review requested due to automatic review settings October 29, 2026 04:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@jtruesdal
jtruesdal merged commit b0133c0 into stormspeed Oct 29, 2026
3 of 12 checks passed
@jtruesdal
jtruesdal deleted the e3sm_dycore_tests branch October 29, 2026 04:58
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready_for_ci This PR is ready for CI tests on CIRRUS cloud

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants