Skip to content

Conversation

@J-Lentz
Copy link
Contributor

@J-Lentz J-Lentz commented Sep 3, 2025

Description
Refactor the mpp_global_field, mpp_*_group_update, interpolator, and data_override unit 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:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules
  • New check tests, if applicable, are included
  • make distcheck passes

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.
Jesse Lentz added 2 commits September 4, 2025 09:49
Test the `mpp_*_group_update` subroutines with nonstandard dimension orders. A
separate module for shared unit test code has also been created.
@J-Lentz J-Lentz changed the title general indices: Add mpp_global_field unit tests general indices: Generalize mpp_global_field and mpp_*_group_update tests Sep 12, 2025
Jesse Lentz added 2 commits October 6, 2025 13:47
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.
@J-Lentz J-Lentz changed the title general indices: Generalize mpp_global_field and mpp_*_group_update tests generalized indices: Modify unit tests to test nonstandard dimension orders Oct 7, 2025
uramirez8707
uramirez8707 previously approved these changes Dec 4, 2025
Copy link
Contributor

@uramirez8707 uramirez8707 left a comment

Choose a reason for hiding this comment

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

Very nice!

Copy link
Contributor

@rem1776 rem1776 left a 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.

Jesse Lentz added 2 commits December 22, 2025 14:45
Skip the updated tests, which will not pass until the generalized indices work
is complete.
uramirez8707
uramirez8707 previously approved these changes Dec 22, 2025
@vithikashah001 vithikashah001 requested a review from rem1776 January 8, 2026 21:01
@vithikashah001 vithikashah001 merged commit 70f930f into NOAA-GFDL:main Jan 9, 2026
28 checks passed
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.

5 participants