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
Further align merge branch with dev/ufs-weather-model (answer-neutral)
Second hunk-by-hunk pass minimizing the diff against dev/ufs-weather-model
without changing answers, breaking exact-restart, or removing CESM-specific
code. All changes are provably inactive or no-ops for CESM configurations.
Files now identical to dev/ufs-weather-model (whitespace-only divergence):
- w3sic4md.F90, w3srcemd.F90: taken verbatim from dev/ufs-weather-model.
w3wavemd.F90:
- ODAT dummy dimension 35 -> 40 (matching UFS). ODAT is unused in the body
in both branches and every call site passes a 40-element array
(wav_shel_inp odat(40) via the cap; wmwavemd DUMMY2(40)).
- Re-add UFS guards that are no-ops under CESM defaults (use_restartnc and
logfile_is_assigned default .false., verboselog defaults .true., none set
by CESM code): "if (.not. use_restartnc)" around the FLOUT(4)/FLOUT(8)
MPI restart prep and on the J=8 second-restart-stream output;
".and. verboselog" on three NAPLOG log writes;
"if (.not. logfile_is_assigned)" around the NDSO BACKSPACE.
- Restore W3_T-only ILEN declaration/use (W3_T never set in CESM builds),
UFS FLOUTG/FLOUTG2 = .false. declaration initializers, and several
comment/blank-line/trailing-space differences.
w3iogomd.F90 (W3OUTG): restore UFS USE block exactly (the extra imports
IAPROC/NAPROC/NAPFLD/NSEALM were unused; NDST is used only under W3_T) and
remove the unused SWW declaration.
wav_shr_mod.F90: re-add the wav_loginit subroutine present in UFS (not
called by CESM, harmless); remove unused locals (ierr, len, i, j x2, sec);
align comment spacing.
w3gridmd.F90: restore upstream changelog comment order and remove a
trailing space. w3iogrmd.F90: align a continuation-line spacing.
w3iorsmd.F90: restore two blank lines and the upstream TIMETAG format
string (identical formatted output). wav_import_export.F90 /
wav_shel_inp.F90: remove unused merge-side locals (num, fvalue, ofile).
Deliberately NOT aligned (kept merge-branch side): the 4961 FORMAT
missing-comma fix and the duplicate FLAG0 declaration removal (both fix
real UFS bugs), the IDOUT(6,14) label, STK_TAIL documentation, validated
newer-develop physics, and all CESM build/cap/output/restart architecture.
Verified: full coupled build succeeds; ERS_Ld3.TL319_t232_wg37.GW_JRA
passes exact-restart (COMPARE_base_rest) and remains bit-identical to
merge_develop across WW3, coupler, MOM6, and CICE history output.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments