-
Notifications
You must be signed in to change notification settings - Fork 22
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
Improve mesh consistency check #119
Conversation
alperaltuntas
commented
Aug 29, 2019
- removes labeled format specifiers
- adds a new param: EPS_OMESH to be used in mesh consistency check
- calls MOM_error if consistency check fails.
This was a great idea. Thanks for introducing it.
…On Thu, Aug 29, 2019 at 11:48 AM Alper Altuntas ***@***.***> wrote:
- removes labeled format specifiers
- adds a new param: EPS_OMESH to be used in mesh consistency check
- calls MOM_error if consistency check fails.
------------------------------
You can view, comment on, or merge this pull request online at:
#119
Commit Summary
- remove labeled format specifiers
- replace hard-coded mesh diff. limit with a param: eps_omesh
- add units to EPS_OMESH
- call get_eps_omesh and remove hardcoded limit
- call MOM_error if mesh is inconsistent
- compare mod 360 of diff and eps
File Changes
- *M* config_src/nuopc_driver/mom_cap.F90
<https://github.com/NCAR/MOM6/pull/119/files#diff-0> (37)
- *M* config_src/nuopc_driver/mom_ocean_model_nuopc.F90
<https://github.com/NCAR/MOM6/pull/119/files#diff-1> (16)
Patch Links:
- https://github.com/NCAR/MOM6/pull/119.patch
- https://github.com/NCAR/MOM6/pull/119.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#119?email_source=notifications&email_token=AB4XCEZK2SSSO4QXDEFX3QTQHADVNA5CNFSM4ISFCUM2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HIIO27Q>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB4XCE2DKV2GAMA2V3F4AY3QHADVNANCNFSM4ISFCUMQ>
.
|
config_src/nuopc_driver/mom_cap.F90
Outdated
!call shr_sys_abort() | ||
diff_lon = abs(mod(lonMesh(n) - lon(n),360.0)) | ||
if (diff_lon > eps_omesh) then | ||
frmt = "('ERROR: Inconsistent coords - "//& |
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.
Should we mention that EPS_OMESH is used to identify the inconsistency? The default value might break in certain conditions (e.g., high-res experiments), and the user may have to change this value.
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.
EPS_MESH is a parameter that can be changed by the user in MOM_input or MOM_override. See changes in mom_ocean_model_nuopc.F90
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 suggestion is to add this message to the ERROR message since the user might not know that changes in EPS_OMESH are needed.
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.
done.
MOM_file_parser unit test implementation
update to MOM6 main 20230731 and 20230811 updating