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

Bugfix: field bundle initialisation can miss ungridded dimensions #540

Merged
merged 2 commits into from
Feb 19, 2025

Conversation

kieranricardo
Copy link
Contributor

@kieranricardo kieranricardo commented Feb 10, 2025

Description of changes

In med_methods_FB_init fields are now accessed by name instead of index. Accessing fields by index sometimes caused issues because med_methods_FB_init removes cpl_scalars from the field name list lfieldNameList, but then accesses the fields from the input state by index when determining the ungridded dimensions. Unless cpl_scalars is the last field in the input state, this causes the wrong fields to be used when determining the ungridded dimensions of the output fields.

Specific notes

Contributors other than yourself, if any:

CMEPS Issues Fixed (include github issue #): #427

Are changes expected to change answers? No.

Any User Interface Changes (namelist or namelist defaults changes)? No.

Testing performed

This change has been tested on a custom configuration using coupling MOM, CICE, and UM on Gadi. Also the regression tests (3.11) have passed here: https://github.com/kieranricardo/CMEPS/actions/runs/13231723482/job/36929866604?pr=1

@jedwards4b jedwards4b merged commit 3536cc5 into ESCOMP:main Feb 19, 2025
4 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.

2 participants