Skip to content

Fix dimensional rescaling in predict_MEKE#802

Merged
theresa-cordero merged 2 commits intoNOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:rescale_predict_MEKE
Jan 21, 2025
Merged

Fix dimensional rescaling in predict_MEKE#802
theresa-cordero merged 2 commits intoNOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:rescale_predict_MEKE

Conversation

@Hallberg-NOAA
Copy link
Copy Markdown
Member

Refactored predict_MEKE() to include two missing dimensional rescaling factors and correct a third and to clearly indicate the units and the nature of the variables where they are being used, in coordination with Andrew Shao. Some white spacing around semicolons in the same MOM_MEKE file was also modified to follow the patterns used elsewhere in the MOM6 code. All answers are bitwise identical in cases that do not use dimensional rescaling.

  Refactored predict_MEKE() to include two missing dimensional rescaling factors
and correct a third and to clearly indicate the units and the nature of the
variables where they are being used, in coordination with Andrew Shao.  Some
white spacing around semicolons in the same MOM_MEKE file was also modified to
follow the patterns used elsewhere in the MOM6 code.  All answers are bitwise
identical in cases that do not use dimensional rescaling.
@Hallberg-NOAA Hallberg-NOAA added the bug Something isn't working label Jan 13, 2025
@ashao
Copy link
Copy Markdown

ashao commented Jan 20, 2025

@Hallberg-NOAA and I discussed this last week and I agree that the changes are correct given the implementation of the MEKE prediction

@theresa-cordero theresa-cordero merged commit bf35f31 into NOAA-GFDL:dev/gfdl Jan 21, 2025
@Hallberg-NOAA Hallberg-NOAA deleted the rescale_predict_MEKE branch January 25, 2025 14:03
@Hallberg-NOAA
Copy link
Copy Markdown
Member Author

We have subsequently found that the changing code complexity in predict_MEKE() in this PR can change how readily other routines in MOM_MEKE.F90 are inlined and optimized, thereby change answers with at least one version of the intel compiler when FMAs are enabled, even when predict_MEKE() is not being called.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants