Skip to content

Allow different ordering in Fortran scheme and associated metadata#666

Merged
mkavulich merged 1 commit into
NCAR:developfrom
gold2718:fix_ordering
Jul 24, 2025
Merged

Allow different ordering in Fortran scheme and associated metadata#666
mkavulich merged 1 commit into
NCAR:developfrom
gold2718:fix_ordering

Conversation

@gold2718
Copy link
Copy Markdown
Collaborator

Allow flexible Fortran scheme argument ordering

In checking compatibility between Fortran and metadata, schemes were required to have
arguments in the same order. This PR removes that restriction.

User interface changes?: No

Fixes: #665

Testing:
unit tests: Modified one test Fortran file to use a different argument ordering in the Fortran scheme.
system tests:
manual testing: manually ran unit tests

Comment thread scripts/ccpp_capgen.py

## Metadata table types where order is significant
_ORDERED_TABLE_TYPES = [SCHEME_HEADER_TYPE]
_ORDERED_TABLE_TYPES = []
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Do we still need _ORDERED_TABLE_TYPES? I assume the answer is yes ...

Copy link
Copy Markdown
Collaborator

@peverwhee peverwhee left a comment

Choose a reason for hiding this comment

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

Thanks @gold2718 ! This make sense, but I'm curious about how this might impact the host model metadata comparison where the local names do not match?

Obviously the tests work so that functionality isn't broken. But I guess my question is... why?

Comment thread scripts/ccpp_capgen.py
Copy link
Copy Markdown
Member

@dustinswales dustinswales left a comment

Choose a reason for hiding this comment

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

@gold2718 Thanks for the fast solution and PR!

@mkavulich mkavulich merged commit 9a40b0f into NCAR:develop Jul 24, 2025
19 checks passed
@peverwhee
Copy link
Copy Markdown
Collaborator

@gold2718 Dustin & Dom helped me understand my host model metadata confusion. Ignore my comment!

@gold2718 gold2718 deleted the fix_ordering branch December 29, 2025 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants