-
Notifications
You must be signed in to change notification settings - Fork 156
generalized indices: Modify unit tests to test nonstandard dimension orders #1763
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
generalized indices: Modify unit tests to test nonstandard dimension orders #1763
Conversation
Refactor the mpp_global_field unit tests to test nonstandard dimension orders. These new tests do not currently pass, as the mpp_global_field implementation uses hardcoded dimension orders.
Test the `mpp_*_group_update` subroutines with nonstandard dimension orders. A separate module for shared unit test code has also been created.
mpp_global_field unit testsmpp_global_field and mpp_*_group_update tests
Modify the interpolator tests to test all possible dimension orders.
The 2D tests in test_data_override_ongrid.F90 have been modified to test for generalized indices support.
mpp_global_field and mpp_*_group_update tests
uramirez8707
left a comment
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.
Very nice!
rem1776
left a comment
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.
Just added a couple suggestions to use the preset autotools variable for the added module's include path, should be good to go in after the licensing is added.
Skip the updated tests, which will not pass until the generalized indices work is complete.
As a workaround for gfortran 13, change `permutable_indices` from a parameterized derived type to separate types for 2D, 3D, and 4D.
Description
Refactor the
mpp_global_field,mpp_*_group_update,interpolator, anddata_overrideunit tests to test nonstandard dimension orders. These new tests do not currently pass, as FMS currently uses hard-coded dimension orders. This PR also adds a new module containing shared code which is used by the modified unit tests.How Has This Been Tested?
New tests build successfully on C5 using intel-classic/2023.2.0. The tests pass when only the standard dimension orders are enabled, and fail when tests using other dimension orders are enabled.
Checklist:
make distcheckpasses