Skip to content

Update CISM-wrapper for the Glide/Glissade separation in CISM - #155

Closed
whlipscomb wants to merge 8 commits into
masterfrom
lipscomb/separate_glide_glissade
Closed

whlipscomb wants to merge 8 commits into
masterfrom
lipscomb/separate_glide_glissade

Conversation

@whlipscomb

@whlipscomb whlipscomb commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Branch: lipscomb/separate_glide_glissade
Base: cismwrap_3_00_002 (d6497d2)
8 commits

Summary

This PR updates CISM-wrapper to work with the CISM PR of the same name (lipscomb/separate_glide_glissade), which removes obsolete code from CISM and separates the Glide and Glissade dycores. Glad, which the wrapper uses, now supports only Glissade, so the wrapper uses the Glissade versions of the CISM I/O modules and types. The PR also removes wrapper code and namelist entries for CISM features that no longer exist.

The final commit, updating .gitmodules and source_cism to the new CISM tag, will be added after CISM PR #94 is merged and tagged.

Changes

  • Stop passing the removed cmake options CISM_MPI_MODE, CISM_SERIAL_MODE and CISM_USE_MPI_WITH_SLAP from buildlib, and remove the unused serial/ directory (serial versions of the glc communication modules, which have not been on the Filepath for a long time) (5851c8f)
  • Remove references to the Trilinos solver (2eb3403)
  • Update calls to CISM's netCDF I/O routines for their new interfaces (de869a7)
  • Use glissade_io, glissade_nc_filldvars and glissade_time instead of the Glide versions (5bcd21d, 7bf2004, 4a44fab)
  • Remove namelist entries for CISM config options that no longer exist: vertical_integration, periodic_ew, basal_tract_max, basal_tract_slope and basal_tract_tanh (a40153f)
  • Update the path to the Glint README in README.parallelization (libglint -> glint) (8863420)

About 7,100 lines are removed, mostly the serial/ directory.

Answer changes

None from the wrapper changes. The CISM changes give small answer changes at startup in tests with an Antarctic ice sheet, and in the solid ice runoff (rofi) in a few cells in three Greenland-only tests; see the CISM PR.

cism.config changes: vertical_integration is no longer written, so NLCOMP fails against older baselines for this reason only.

Dependencies

This PR requires the CISM PR; commits de869a7 and later do not build with older CISM. Once the CISM PR is merged and tagged, the last commit of this PR should update the fxtag in .gitmodules and the source_cism pointer together. The source_cism pointer is not updated in the commits so far.

Testing

With source_cism checked out at the matching commits of the CISM branch:

  • A 4-test aux_glc subset (intel and gnu) for each commit; at the head of both branches, all tests pass compared to a baseline generated at CISM f3ebc168, including NLCOMP.
  • The full aux_glc suite at CISM f3ebc168 (except the known NCK_Ly3 failure, issue NCK multi instance test failure #110), plus a mid-year restart test with time-averaged output (34 tests in all), compared to the cesm_timevars_step3 baseline: all builds, runs and restart comparisons pass. All baseline differences are explained by the Glad change in CISM (02eae8d5), and the only NLCOMP difference is vertical_integration.

🤖 Generated with Claude Code

whlipscomb and others added 8 commits October 19, 2026 19:52
CISM no longer supports serial (non-MPI) builds, and the cmake options
CISM_MPI_MODE, CISM_SERIAL_MODE, and CISM_USE_MPI_WITH_SLAP have been
removed from CISM. Stop passing them from buildlib.

This is compatible with both old and new CISM: in older CISM versions,
the defaults for these options match the values that were passed.

Also remove the serial/ directory (serial versions of the glc
communication modules), which has not been on the Filepath for a long
time; buildlib uses mpi/.

Does not change answers. Tested with 4 aux_glc tests (intel and gnu)
compared against baselines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Trilinos solver interface (which_ho_sparse = 4) has been removed from
CISM.

- buildlib: stop passing -D CISM_USE_TRILINOS=OFF (compatible with older
  CISM versions, where OFF is the default)
- namelist_definition_cism.xml: remove option 4 from the which_ho_sparse
  description (it was already excluded from valid_values)

Does not change answers. Tested with 4 aux_glc tests (intel and gnu)
compared against baselines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In CISM, the netCDF I/O routines in libglimmer no longer take the full model
instance (glide_global_type). They take the model's file lists
(model%funits) and other values as needed. Update the calls in glc_io.F90:

- glimmer_nc_createfile: pass model%funits and model%projection
- glimmer_nc_write_timeslice: pass model%funits and the timestep count
- glimmer_nc_checkwrite: pass model%funits, the timestep and the timestep
  count

This requires the CISM commit "Remove glide_global_type from glimmer_ncio and
glimmer_ncparams"; it does not build with older CISM versions.

Does not change answers. Tested with 4 aux_glc tests (intel and gnu)
compared against baselines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CISM now generates a separate I/O module for the Glissade dycore,
glissade_io, which GLAD uses. In glc_io.F90, call glissade_io_create,
glissade_io_write and glissade_avg_reset instead of the glide_io versions.
(glide_nc_filldvars is unchanged.)

This requires the CISM commit "Add glissade_io, generated from
glissade_vars.def"; it does not build with older CISM versions.

Does not change answers. Tested with 4 aux_glc tests (intel and gnu)
compared against baselines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Needs CISM d8ed7f5b.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CISM no longer reads these options (Glide-only; removed from
glissade_setup):
- vertical_integration (was written to cism.config by default, = 0)
- periodic_ew
- basal_tract_max, basal_tract_slope, basal_tract_tanh

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CISM renamed the GLAD instance variable glide_time to glissade_time,
since GLAD runs only with the Glissade dycore.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CISM renamed the libglint directory to glint.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@whlipscomb

Copy link
Copy Markdown
Contributor Author

Superseded by #158 (merged) and #159–#161.

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