-
Notifications
You must be signed in to change notification settings - Fork 18
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
MAPL changes to support CICE6 rewind for replay #2959
Comments
@zhaobin74 We can certainly do this, but it also fine if you want to do a PR yourself (onto the develop branch). |
Has there been any progress on this? Currently I'm using @zhaobin74's local GEOS build but I might need to switch to a newer version of GEOSgcm in order to use another feature (DataAtm run). |
I thought @atrayano added this to his plate before he departed for Bulgaria. I think we wanted to do a slight variation ... I'll email him separately to get a status update. (Not sure if he links his personal email to GitHub.) |
Thanks @tclune! |
Yes, @atrayano said in #2982 (comment) that:
My guess is things got busy quickly as they do for Atanas. :) |
@atrayano has a fix and will pass it along for testing in ~ 1 day. |
During a meeting yesterday @zhaobin74 mentioned @atrayano's rewind fix didn't work. I wanted to write it here again just in case his update in the comment didn't generate any notifications 👀 |
I am forwarding this to Atanas’ gmeail account in the hopes he might have time to address this yet this week.
From: Doruk Ardağ ***@***.***>
Date: Wednesday, October 30, 2024 at 10:50 AM
To: GEOS-ESM/MAPL ***@***.***>
Cc: Clune, Thomas L. (GSFC-6101) ***@***.***>, Mention ***@***.***>
Subject: [EXTERNAL] [BULK] Re: [GEOS-ESM/MAPL] MAPL changes to support CICE6 rewind for replay (Issue #2959)
CAUTION: This email originated from outside of NASA. Please take care when clicking links or opening attachments. Use the "Report Message" button to report suspicious messages to the NASA SOC.
During a meeting yesterday @zhaobin74<https://github.com/zhaobin74> mentioned @atrayano<https://github.com/atrayano>'s rewind fix didn't work. I wanted to write it here again just in case his update in the comment didn't generate any notifications 👀
—
Reply to this email directly, view it on GitHub<#2959 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABPP7YEG76TCOTFGLCLDWG3Z6DWZZAVCNFSM6AAAAABMMWMODWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBXGQYDMMBYGQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@zhaobin74 I had to make 1 change iCICE6::Restoren CICE_90: the registration method now requires slightly different syntax: instead of call MAPL_GridCompSetEntryPoint ( GC, ESMF_METHOD_READRESTART, Refresh, _RC) I Could you please, verify it. And by the way, while debugging, I noticed another (totally unrelated) bug: inside the Refresh subroutine the string variable "Iam" grows (i.e. it went from CICE6::Restore to CICE6::CICE6::Restore to CICE6::CICE6::CICE6::Restore, etc). Eventually this will lead to buffer overflow |
@atrayano, I can verify the MAPL fix works after changing to MAPL_METHOD_REFRESH. I'll make a PR in GEOSgcm_gridComp repo with these updates. Thanks. |
I have not looked at the specif module, but am guessing that (1) Iam is a module variable and thus has the SAVE attribute (implicitly) and (2) the procedure is doing something like |
There is no such variable with name |
OK - I had the details slightly wrong. It is a local variable declared with the Iam macro. But since the macro gives an initial value, the variable as the SAVE attribute. (implicitly). Then Causes it to grow each time the refresh() method is called. |
Implicit SAVE when initialized? What a feature! Now I know how to fix it. Thanks, @tclune |
Yes - this is an ancient rule inFortran. It really throws off the C programmers, but also catches us Fortran old timers occasionally. |
Hi,
Some code needs to be implemented to support rewinding CICE6 states when coupled model runs in replay mode.
Specifically, the following patch is required in subroutine MAPL_GenericRefresh.
The above code was tested in V11.4.0 and shown to be working.
Could SI group add the implementation in the next MAPL version? This is required by @Dooruk for his coupled DA work with CICE6.
Thanks
The text was updated successfully, but these errors were encountered: