Repository navigation
Update CISM-wrapper for the Glide/Glissade separation in CISM - #155
Closed
whlipscomb wants to merge 8 commits into
Closed
whlipscomb wants to merge 8 commits into
whlipscomb wants to merge 8 commits into
Conversation
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
marked this pull request as ready for review
November 9, 2026 21:18
This was referenced Nov 11, 2026
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Branch:
lipscomb/separate_glide_glissadeBase:
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
CISM_MPI_MODE,CISM_SERIAL_MODEandCISM_USE_MPI_WITH_SLAPfrombuildlib, and remove the unusedserial/directory (serial versions of the glc communication modules, which have not been on the Filepath for a long time) (5851c8f)glissade_io,glissade_nc_filldvarsandglissade_timeinstead of the Glide versions (5bcd21d, 7bf2004, 4a44fab)vertical_integration,periodic_ew,basal_tract_max,basal_tract_slopeandbasal_tract_tanh(a40153f)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.configchanges:vertical_integrationis 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
fxtagin.gitmodulesand thesource_cismpointer together. Thesource_cismpointer is not updated in the commits so far.Testing
With
source_cismchecked out at the matching commits of the CISM branch:cesm_timevars_step3baseline: all builds, runs and restart comparisons pass. All baseline differences are explained by the Glad change in CISM (02eae8d5), and the only NLCOMP difference isvertical_integration.🤖 Generated with Claude Code