Skip to content

Config reorganization R3: follow the Glissade type changes; write the ocean levels in [ocean_data] - #165

Open
whlipscomb wants to merge 2 commits into
lipscomb/config_reorg_r2bfrom
lipscomb/config_reorg_r3
Open

whlipscomb wants to merge 2 commits into
lipscomb/config_reorg_r2bfrom
lipscomb/config_reorg_r3

Conversation

@whlipscomb

@whlipscomb whlipscomb commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Branch: lipscomb/config_reorg_r3 (2 commits)
Base: lipscomb/config_reorg_r2b (#164). Stacked; the base will be changed to master after #162, #163 and #164 are merged.
CISM: companion PR ESCOMP/CISM#109 (R3, branch lipscomb/config_reorg_r3). The source_cism pointer is not changed here; it will be updated to a CISM tag once the CISM PRs are merged.

Summary

In CISM R3, each Glissade config variable is named after its key and lives in the derived type of its config section. Two wrapper changes follow:

  • Fortran: glc_io.F90 and glc_RunMod.F90 read the time step and step count from the new time type (model%time%tinc, model%time%tstep_count; were in model%numerics).
  • Config: CISM folds [grid_ocn] into [ocean_data]. The grid_ocn namelist group joins ocean_data, and buildnml no longer writes a [grid_ocn] section.

No answer changes. The generated configs have the same keys and values; nzocn, dzocn and nbasin now appear in [ocean_data]. Key names are unchanged, so user_nl_cism files need no change.

Changes

commit change
be14625 glc_io.F90 and glc_RunMod.F90 use model%time%tinc and model%time%tstep_count (CISM 11bb3060).
70b4876 nzocn, dzocn and nbasin move from the grid_ocn group to ocean_data (after the ocean_data options); buildnml no longer writes [grid_ocn] (CISM fa87c05e).

Testing

  • preview_namelists for an AIS+GrIS case (ERI_Ly9.f09_g17_ais8gris4.T1850Gag, testmod noevolve_ais), before and after 70b4876: in both cism.ais.config and cism.gris.config, the only change is that the [grid_ocn] keys appear in [ocean_data], with the same values.
  • aux_glc subset of 5 tests (--compare alpha11e_stage1) after each group of CISM commits, with source_cism at the matching commit: all PASS (namelist comparison excepted), including after be14625 (batch r3c3) and 70b4876 (batch r3c9).
  • Full aux_glc at the tip (37 tests, --compare alpha11e_stage1, source_cism at CISM fa87c05e): every test passes its run, restart/branch comparisons and baseline comparison. 1 test passes outright; the other 36 show NLFAIL only because NLCOMP fails, which is expected. No other phase failed.

🤖 Generated with Claude Code

whlipscomb and others added 2 commits November 18, 2026 16:09
CISM moves the time-stepping variables of Glissade from model%numerics to
the new model%time ("Move the grid, time, diagnostics, options, numerics and
initialization keys into their section types"). glc_io.F90 and glc_RunMod.F90
now read model%time%tinc and model%time%tstep_count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CISM folds [grid_ocn] into [ocean_data] ("Fold [grid_atm] into [climate] and
[grid_ocn] into [ocean_data]; remove ioparams"). nzocn, dzocn and nbasin move
from the grid_ocn namelist group to ocean_data (after the ocean_data options),
and buildnml no longer writes a [grid_ocn] section. The generated configs have
the same keys and values; the three keys now appear in [ocean_data]. The key
names are unchanged, so user_nl_cism files are unaffected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants