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

Improve mesh consistency check #119

Merged
merged 7 commits into from
Aug 29, 2019
Merged

Conversation

alperaltuntas
Copy link
Member

  • removes labeled format specifiers
  • adds a new param: EPS_OMESH to be used in mesh consistency check
  • calls MOM_error if consistency check fails.

@mvertens
Copy link

mvertens commented Aug 29, 2019 via email

!call shr_sys_abort()
diff_lon = abs(mod(lonMesh(n) - lon(n),360.0))
if (diff_lon > eps_omesh) then
frmt = "('ERROR: Inconsistent coords - "//&
Copy link
Collaborator

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.

Copy link
Member Author

@alperaltuntas alperaltuntas Aug 29, 2019

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

Copy link
Collaborator

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.

Copy link
Member Author

Choose a reason for hiding this comment

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

done.

@gustavo-marques gustavo-marques merged commit d329136 into dev/ncar Aug 29, 2019
@alperaltuntas alperaltuntas deleted the improve_consistency_check branch August 29, 2019 21:38
gustavo-marques pushed a commit that referenced this pull request Aug 5, 2022
MOM_file_parser unit test implementation
alperaltuntas pushed a commit that referenced this pull request Feb 9, 2024
update to MOM6 main 20230731 and 20230811 updating
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.

3 participants