-
Notifications
You must be signed in to change notification settings - Fork 90
Add MPAS-O and MPAS-SI from EarthWorksOrg/EarthWorks #569
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
base: main
Are you sure you want to change the base?
Conversation
…cesm_mod.F90 Since EarthWorksOrg/cmeps has been based on 'cmeps0.13.68' the routine signatures are different to those used in 'cmeps0.14.2'. So, logic added for mpas-ocean and mpas-seaice fields did not automatically update to the new implementations. This commit manually does that update.
As the resolution of simulation increases, it makes sense to also increase the coupling intervals to maintain stability and realism.
If the compset name contains "_MPAS" then NCPL_BASE_PERIOD changes to hour instead of day. The new values are equivalent to the day-based values. Also add an entry for ROF, so that it is set to ATM_NCPL if the compset includes "_MPAS" in the name.
Necessary coupling fields associated with the new version of MPAS-Ocean have been added. These fields are associated with Stokes drift and may not actually be used.
Catch up to development, especially to cesm3_0_beta06 version.
Some help reviewing from @jedwards4b and optionally @fischer-ncar would be appreciated! (Can't assign reviewers.) |
This is part of a collection of PRs to enable MPAS-O and MPAS-SI in CESM: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am concerned that these changes are being applied to all cases but may only be relevant for earthworks. Are you certain that they have no adverse effects on other compsets?
I'm not exhaustively certain. I have not noticed any answer differences from cesm3_0_beta06 after adding these changes for what I've tested (especially aux_cmeps runs for this PR). @dazlich any thoughts? @jedwards4b, would it help your concern to add some logic so this new code is only executed if MPAS-O is the ocean model (`ocn_name == 'mpaso')? |
Yes, I think that would address my concern. Thanks |
@gdicker1 , @jedwards4b I believe the concern might be that mpasa framework might get confused with the framework used by mpaso and mpassi. We have modified the mpaso/si framework so that all modules carry a different name from those in mpasa. |
@gdicker1 , @jedwards4b I should add that means maintenance of two copies of mpas-framework code, not a good practice. The effort to merge them is likely non-trivial, but likely not too onerous. |
@dazlich, noted on the mpas-framework. I likely won't be able to address it before these PRs, but that would be good to address soon-ish (i.e. before August). |
@gdicker1 - agreed. And I can make time available to work on this.
|
@dazlich, could you help my understanding a bit? Is this comment a concern overall with adding MPAS-O and MPAS-SI to CESM? Or am I not following how this comment relates to the changes in esmFldsExchange_cesm_mod.F90? |
@gdicker1 - that’s an overall comment on porting MPAS-O and MPAS-SI into CESM. I neglected to note this was in the CMEPS discussion when my name popped up. Is there another place to put my framework comments?
As to esmFldsExchange_cesm_mod.F90 - I recall adding mpaso/si variables as necessary. I don’t have a good idea what, if any, conflicts they might introduce into cesm, so the mpaso specific logic comment is a good idea.
|
@dazlich, I think this works for now since I don't have an ESCOMP/CESM PR. I'll get some of these points copied into EarthWorksOrg/EarthWorks Issue#40.
Thanks! |
This change tries to ensure that adding MPAS-O and MPAS-SI won't affect CESM results.
@jedwards4b, could you make sure I've satisfied requested edits? And @dazlich, your opinion would be valued too. |
!----------------------------- | ||
! to ocn: | ||
!----------------------------- | ||
if (ocn_name == 'mpaso') then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that you can bracket all of this code with one if instead of having one for each variable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Understood, will do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My recent commit just did the big 'mpaso' section. Let me know if I need to consolidate more.
I agree with Jim, otherwise looks good |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
Description of changes
This PR edits config_*.xml files and fields exchanged to enable MPAS Ocean and MPAS SeaIce to be used as components in CESM. These components have been forked from E3SM and developed in the EarthWorks project (EarthWorksOrg/EarthWorks on GitHub).
Specific notes
Contributors other than yourself, if any: @dazlich (Don Dazlich)
Are changes expected to change answers? bfb
Any User Interface Changes (namelist or namelist defaults changes)? N/A
Testing performed
I tested a CESM sandbox with this and other relevant changes compared against the baseline version, cesm3_0_beta06 and the externals cloned there. I mainly ran the aux_cmeps via
create_test
on Derecho. I did not notice any new fails, just many NLFAILS reported sincemodel_version
was compared between the namelists.Baseline: ESCOMP/CESM:cesm3_0_beta06 tag (637b59332d7ff3d339906116942a334ed5537d18)
Test: gdicker1/CESM:eworg_mpaso_mpassi branch (e6698083a8f7199dedc1cc50204dd4b324808d45)
Baseline aux_cmeps FAILS on Derecho, 5 of 24 tests:
Test (this PR) aux_cmeps FAILS on Derecho, 5 of 24 tests (plus 19 NLFAILS):