You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Switch CESM to netCDF restarts with binary fallback; in-core calm IC
Make netCDF (PIO) restarts the default for CESM while keeping binary
restarts as a coexisting, backward-compatible fallback, and start
initial runs from in-core calm conditions rather than a binary
calm_strt.ww3 file.
- wav_comp_nuopc.F90: set use_restartnc=.true. for CESM; defer model
init (waveinit_cesm/wav_history_init) to InitializeRealize after
wav_pio_init, since CESM PIO is only set up at PostChildrenAdvertise.
- w3initmd.F90: CESM restart read selects netCDF vs binary by the
initfile extension (.nc -> read_restart, else -> binary w3iors
fallback); an initial run with no initfile starts from in-core calm
(read_restart('none')).
- w3iorsmd.F90: accept a legacy-version binary restart ('2021-05-28')
with a warning instead of aborting -- the FULL-restart record layout
is unchanged, so hybrid/branch runs stay backward compatible with
pre-merge binary restarts.
- w3wavemd.F90: keep the CESM gridded-output/coupling-export handling
(which keeps the HS/Stokes/period arrays current for the mediator
export) and write netCDF restarts via wav_restart_mod when
use_restartnc.
- wav_history_mod.F90: skip the per-history indicator log file for CESM
(#ifndef W3_CESMCOUPLED); retained for UFS.
Validated against the 30a09a baseline: aux_ww3 (ERS/ERI/SMS_D/SMS-CW/
SMS-legacy_cpl) -- cpl.hi/cpl.hx.ww3/mom6 identical, exact-restart and
branch/hybrid comparisons pass, only the known ww3.hi THM convention
delta remains; plus multi-instance netCDF exact-restart (ERS _C3) and
branch/hybrid from pre-merge binary restarts all pass.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments