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

(*)Write full checksums to restarts #1371

Merged
merged 2 commits into from
Apr 15, 2021

Conversation

Hallberg-NOAA
Copy link
Collaborator

Change the types returned from the 5 rotated_field_chksum functions from integer
to integer(kind=int64), so that the full 64-byte checksums are returned. Without
this change, the checksums that are written to MOM6 restart files or interpreted
from them are truncated to the latter half of their length. This changes the
checksums that are written to the restart files, but both before and after this
change the values that are written are the same as those that are generated
after reading the restart with the same version of the code. The code can run
across this change by setting RESTART_CHECKSUMS_REQUIRED = False for the run
segment where the transition occurs. The solutions themselves are bitwise
identical.

  Change the types returned from the 5 rotated_field_chksum from integer to
integer(kind=int64), so that the full 64-byte checksums are returned.  Without
this change, the checksums that are written to MOM6 restart files or interpreted
from them are truncated to the latter half of their length.  This changes the
checksums that are written to the restart files, but both before and after this
change the values that are written are the same as those that are generated
after reading the restart with the same version of the code.  The code can run
across this change by setting RESTART_CHECKSUMS_REQUIRED = False for the run
segment where the transition occurs.  The solutions themselves are bitwise
identical.
@marshallward
Copy link
Collaborator

marshallward commented Apr 15, 2021

@marshallward marshallward merged commit 048dabd into mom-ocean:dev/gfdl Apr 15, 2021
@Hallberg-NOAA Hallberg-NOAA deleted the fix_checksums branch July 30, 2021 18:00
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