Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix filename interval for 2 analysis member restarts #4687

Conversation

xylar
Copy link
Contributor

@xylar xylar commented Dec 3, 2021

The Eliassen-Palm and time-filters analysis members both had hard-coded restart file intervals of 1 year. This causes restarts with these analysis members to fail in situations where the restart interval does not match the file interval. This merge changes the filename interval to be the same as the output interval to match restart streams in all other analysis members.

The Eliassen-Palm and time-filters analysis members both had
hard-coded restart file intervals of 1 year.  This causes restarts
with these analysis members to fail in situations where the restart
interval does not match the file interval.  This merge changes the
filename interval to be the same as the output interval to match
restart streams in all other analysis members.
@xylar xylar requested review from mark-petersen and jonbob December 3, 2021 08:20
@xylar xylar assigned xylar and jonbob and unassigned xylar Dec 3, 2021
@xylar xylar added the BFB PR leaves answers BFB label Dec 3, 2021
@xylar
Copy link
Contributor Author

xylar commented Dec 3, 2021

These analysis members are not enabled in E3SM runs by default:

<config_AM_eliassenPalm_enable>.false.</config_AM_eliassenPalm_enable>

<config_AM_timeFilters_enable>.false.</config_AM_timeFilters_enable>

So these changes will have no effect on E3SM runs. The only effect will be in compass tests where the AMs are enabled. In particular, I had trouble with these settings in MPAS-Dev/compass#273, in which I wasn't able to restart a longer run.

@xylar
Copy link
Contributor Author

xylar commented Dec 3, 2021

@mark-petersen and @jonbob, please let me know what E3SM testing you would like to see from me on this PR. I'm happy to do whatever is needed but don't want to run arbitrary testing without checking with you first.

Copy link
Contributor

@jonbob jonbob left a comment

Choose a reason for hiding this comment

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

Approved based on visual inspection -- thanks for catching this, @xylar

Copy link
Contributor

@mark-petersen mark-petersen left a comment

Choose a reason for hiding this comment

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

Agreed. Thanks for fixing this @xylar. I did a quick check, and these are the only two:

cd components/mpas-ocean/src/analysis_members
grep -A 5  Restart *xml|grep filename_interval

Registry_conservation_check.xml-				filename_interval="output_interval"
Registry_eliassen_palm.xml-			filename_interval="01-00-00_00:00:00"
Registry_harmonic_analysis.xml-		                 filename_interval="output_interval"
Registry_lagrangian_particle_tracking.xml-				filename_interval="output_interval"
Registry_time_filters.xml-				filename_interval="01-00-00_00:00:00"
Registry_time_series_stats_climatology.xml-				filename_interval="output_interval"
Registry_time_series_stats_custom.xml-				filename_interval="output_interval"
Registry_time_series_stats_daily.xml-				filename_interval="output_interval"
Registry_time_series_stats_monthly_max.xml-				filename_interval="output_interval"
Registry_time_series_stats_monthly_mean.xml-				filename_interval="output_interval"
Registry_time_series_stats_monthly_min.xml-				filename_interval="output_interval"

@xylar
Copy link
Contributor Author

xylar commented Dec 6, 2021

Thanks, @mark-petersen. I did the same search but much less efficiently. Glad we found the same thing.

jonbob added a commit that referenced this pull request Dec 7, 2021
…tervals' into next (PR #4687)

Fix filename interval for 2 analysis member restarts

The Eliassen-Palm and time-filters analysis members both had hard-coded
restart file intervals of 1 year.  This causes restarts with these
analysis members to fail in situations where the restart interval does
not match the file interval.  This merge changes the filename interval
to be the same as the output interval to match restart streams in all
other analysis members.

[BFB]
@jonbob
Copy link
Contributor

jonbob commented Dec 7, 2021

passes sanity testing -- merged to next

@jonbob jonbob merged commit 89d4726 into E3SM-Project:master Dec 8, 2021
@jonbob
Copy link
Contributor

jonbob commented Dec 8, 2021

merged to master

@xylar xylar deleted the ocean/fix-two-analysis-member-restart-filename-intervals branch December 12, 2021 17:02
xylar added a commit to xylar/compass that referenced this pull request Dec 12, 2021
commit hash: 89d472679bba9e82671301d872bf128112c97d75

This update includes the following MPAS-Ocean PRs:
* GPU port of ocean vmix routine (non-bit-for-bit in compass),
  E3SM-Project/E3SM#4680
* Fix filename interval for 2 analysis member restarts (bit-for-bit)
  E3SM-Project/E3SM#4687
xylar added a commit to xylar/compass that referenced this pull request Feb 4, 2022
commit hash: 44814ae3ce06ec1d175fc03a6c4471f9d3fad274

This update includes the following MPAS-Ocean PRs:
* Corrected coupling of ice biogeochemistry for MARBL
  E3SM-Project/E3SM#4641
* GPU port of ocean vmix routine (non-bit-for-bit in compass)
  E3SM-Project/E3SM#4680
* Fix filename interval for 2 analysis member restarts
  E3SM-Project/E3SM#4687
* fix calculation of the ML-averaged Brunt-Vaisala frequency
  E3SM-Project/E3SM#4715
* Fix interface locations for 60-layer PHC grid
  E3SM-Project/E3SM#4729
* Update PGI compiler runs of E3SM on GPUs
  E3SM-Project/E3SM#4748
* Initialize Coriolis param in its own subroutine
  E3SM-Project/E3SM#4750
* Add mode specification to conservation check streams
  E3SM-Project/E3SM#4769

And the following MPAS framework PRS:
* add -ffpe-summary=none to stand-alone MPAS Makefile for gnu
  E3SM-Project/E3SM#4643
* Fix missing dependency in one case of gen_f90_targets
  E3SM-Project/E3SM#4736
* new reproducible global sum module for MPAS components
  E3SM-Project/E3SM#4700
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BFB PR leaves answers BFB mpas-ocean
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants