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

Bug fix for chunked array support in ccpp_prebuild #538

Conversation

climbfuji
Copy link
Collaborator

@climbfuji climbfuji commented Feb 29, 2024

Small bug fix required to use chunked arrays and retain backward compatibility with blocked data structures in ccpp_prebuild.py

This PR is a small bug fix in order to provide backward compatibility with blocked data structures. Specifically, we need to check if the host model variable is a contiguous array (it's horizontal dimension is CCPP_HORIZONTAL_DIMENSION) or part of a blocked data structure (it's horizontal dimension is CCPP_HORIZONTAL_LOOP_EXTENT).

User interface changes?: No

Resolves #539

Testing:
- test removed: none
- unit tests: capgen tests in test all pass; prebuild tests in test_prebuild all pass
- system tests: doctests in test al pass
- manual testing: tested extensively in my (yet to be created) PRs that convert all UFS DDTs from blocked data structures to chunked arrays

Dependencies/associated PRs:

This is part of a set of (independent) PRs:

Copy link
Collaborator

@gold2718 gold2718 left a comment

Choose a reason for hiding this comment

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

Does this work if you have 'chunked' data but only one chunk? I don't see why it shouldn't but wondered if this is something you test.

@climbfuji
Copy link
Collaborator Author

Does this work if you have 'chunked' data but only one chunk? I don't see why it shouldn't but wondered if this is something you test.

Yes, it works in that case, too. Thanks for the quick review!

Copy link
Collaborator

@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.

Looks good to me.

@climbfuji
Copy link
Collaborator Author

@grantfirl UFS testing for this PR is complete. Can you add your final review please and merge if ok? Thanks!

@zach1221
Copy link

Good morning, @grantfirl . Testing is complete on UFS-WM PR #2164. Can you please merge this PR for us?

@grantfirl grantfirl merged commit 221788f into NCAR:main Mar 11, 2024
5 checks passed
@grantfirl grantfirl deleted the bugfix/ccpp_prebuild_chunked_array_support_20240228 branch March 11, 2024 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
capgen-unification ccpp_prebuild bugs, requests, etc. that involve ccpp_prebuild
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

ccpp_prebuild: bug fix needed to provide backward compatibility with blocked data structures
5 participants