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

support for CICE6(or others) to rewind #2982

Merged
merged 6 commits into from
Dec 6, 2024

Conversation

zhaobin74
Copy link
Contributor

This PR closes #2959

Types of change(s)

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Trivial change (affects only documentation or cleanup)
  • Refactor (no functional changes, no api changes)

Checklist

  • Tested this change with a run of GEOSgcm
  • Ran the Unit Tests (make tests)

Description

Allows a GC's refresh method (if present)to be called. Necessary for some GC's to rewind states.

Related Issue

@zhaobin74 zhaobin74 requested a review from a team as a code owner August 22, 2024 14:31
@zhaobin74 zhaobin74 added the 0 Diff The changes in this pull request have verified to be zero-diff with the target branch. label Aug 22, 2024
Copy link
Collaborator

@tclune tclune left a comment

Choose a reason for hiding this comment

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

This is ok by me, but I want @atrayano to review.

It is odd to use phase=MAPL_MAX_PHASES + 1, and am wondering if since this is not a run phase, it could use a different value.

@zhaobin74
Copy link
Contributor Author

This is ok by me, but I want @atrayano to review.

It is odd to use phase=MAPL_MAX_PHASES + 1, and am wondering if since this is not a run phase, it could use a different value.

@tclune, I don't like hardcoded 1 either. But it is the only one I can come up with which works. Maybe @atrayano can fix it.

@mathomp4
Copy link
Member

@zhaobin74 How crucial is this?

If you'd like a release but can wait until next week, we can look at getting out a new MAPL release. develop has been accumulating a lot.

But, if you need it urgently, I can make a hotfix and release a new MAPL 2.47

@mathomp4 mathomp4 self-assigned this Aug 23, 2024
@mathomp4 mathomp4 requested a review from atrayano August 23, 2024 15:57
@zhaobin74
Copy link
Contributor Author

@zhaobin74 How crucial is this?

If you'd like a release but can wait until next week, we can look at getting out a new MAPL release. develop has been accumulating a lot.

But, if you need it urgently, I can make a hotfix and release a new MAPL 2.47

@mathomp4 , it is not urgent. @Dooruk is on PTO and he can already run his DA tests using my build (v1160) with the MAPL branch I made these changes on. I think it should be more vigorously vetted and hopefully @atrayano could further refine it.

@atrayano
Copy link
Contributor

@zhaobin74 I have several concerns regarding this PR. The most trivial one is that instead of hardcoding MAPL_MAX_PHASES+1, we could introduce a local variable "phase", which we should get by calling ESMG_GridCompGet(gc, currentPhase=phase, _RC). A far more serious concern is the fact that we are using cold_start method which was supposed to be only as a fallback strategy during Initialize. Luckily for us, thus method is not used anywhere in GEOS (with a possible exception of the dycore), but if another component legitimately tries to use it, this PR has the potential to break that imaginary component. Let's touch base on Monday to brainstorm and find a better solution.

For the time being, I will add "do not approve" label.

@atrayano atrayano added the 🚫 Contingent - DNA Do Not Approve (DNA). These changes are contingent on other PRs label Aug 23, 2024
@atrayano atrayano removed the 🚫 Contingent - DNA Do Not Approve (DNA). These changes are contingent on other PRs label Dec 6, 2024
@mathomp4 mathomp4 requested a review from tclune December 6, 2024 14:25
generic/MAPL_Generic.F90 Outdated Show resolved Hide resolved
generic/MAPL_Generic.F90 Outdated Show resolved Hide resolved
Copy link
Collaborator

@tclune tclune left a comment

Choose a reason for hiding this comment

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

See inline comments.

@atrayano atrayano merged commit ee08198 into develop Dec 6, 2024
48 checks passed
@atrayano atrayano deleted the feature/zhaobin74/support-cice6-rewind branch December 6, 2024 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 Diff The changes in this pull request have verified to be zero-diff with the target branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants