Skip to content

CESM to NOAA sync: restart filename#99

Open
iangrooms wants to merge 7 commits into
NOAA-PSL:masterfrom
ESCOMP:noaa-sync_june2026
Open

CESM to NOAA sync: restart filename#99
iangrooms wants to merge 7 commits into
NOAA-PSL:masterfrom
ESCOMP:noaa-sync_june2026

Conversation

@iangrooms

Copy link
Copy Markdown
Contributor

CESM needed to modify the restart filename for this stochastic physics package. On the NOAA-PSL repository it is hard-coded as './INPUT/ocn_stoch.res.nc'. This PR makes the stochastic restart filename a public module variable with the default value equal to './INPUT/ocn_stoch.res.nc'. For non-CESM users of this package the change should have no impact at all, but the change allows CESM to 'use' the module variable and set it using our naming and location conventions.

The PR also fixes some typos in comments.

alperaltuntas and others added 6 commits August 27, 2025 16:47
This rename avoids a build failure where the CESM infrastructure cannot locate halo_exchange.o due to the dot in the filename.
In stochy_data_mod the name of the ocean stochastic restart file is no longer hard-coded. Instead it has become a public module variable initialized to its previously hard-coded value. This enables other modules to change the name of the restart file. Together with PR 376 to NCAR/MOM6, this enables MOM6 to write the restart file in the run directory, with file name equal to the mom6 restart filename but with .r_stoch. in place of .r..

It also massively reduces the amount of output printed to the cesm log file, and corrects some copy/paste typos in the output.

This partially addresses issue 360 on NCAR/MOM6 about not having exact restarts when using the stochastic GM+E parameterization.
Also print out stoch_restfile if the netcdf file open fails
Pulling in latest from NOAA-PSL before sending our updates to them.
@iangrooms iangrooms requested a review from pjpegion as a code owner June 28, 2026 14:22
Comment thread halo_exchange_fv3.F90

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you modify the reference to halo_exchange.fv3.F90 in CMakeLists.txt?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry - I went through and changed the name in all the references to this file, but I neglected to change the actual file name. Just renamed this file to have a . instead of an underscore.

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.

4 participants