Skip to content

#1312: metadata for read-only arrays#2173

Merged
arporter merged 169 commits into
masterfrom
1312_metadata_for_arrays
Jul 23, 2025
Merged

#1312: metadata for read-only arrays#2173
arporter merged 169 commits into
masterfrom
1312_metadata_for_arrays

Conversation

@mo-lottieturner

@mo-lottieturner mo-lottieturner commented Jun 12, 2023

Copy link
Copy Markdown
Collaborator

.

@codecov

codecov Bot commented Jun 19, 2023

Copy link
Copy Markdown

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (b393e04) 0.00% compared to head (fe4baf9) 99.84%.

Files Patch % Lines
...psyclone/domain/lfric/kernel/array_arg_metadata.py 94.00% 3 Missing ⚠️
...ne/domain/lfric/kernel/common_meta_arg_metadata.py 92.30% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #2173       +/-   ##
===========================================
+ Coverage        0   99.84%   +99.84%     
===========================================
  Files           0      353      +353     
  Lines           0    47511    +47511     
===========================================
+ Hits            0    47438    +47438     
- Misses          0       73       +73     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mo-lottieturner

Copy link
Copy Markdown
Collaborator Author

(all tests pass except codecov)

@mo-alistairp

mo-alistairp commented Jul 22, 2025

Copy link
Copy Markdown
Collaborator

I've added some documentation for the subroutine call. The design in #1312 seems to suggest that the ScalarArray is only variable needed in the subroutine definition, so hopefully this is sufficient. Let me know if you want anything else included in the documentation. Otherwise, I think this is ready for review again.

@arporter arporter left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks Alistair, very nearly there now.
The documentation on the subroutine rules need updating to match what #1312 says.
I think it would also be better to switch to storing the number of dimensions of a ScalarArray as an int.

Comment thread doc/user_guide/lfric.rst Outdated
Comment thread src/psyclone/domain/lfric/kernel/scalar_array_arg_metadata.py Outdated
Comment thread src/psyclone/domain/lfric/kernel/scalar_array_arg_metadata.py Outdated
Comment thread src/psyclone/domain/lfric/kernel/scalar_array_arg_metadata.py Outdated
Comment thread doc/user_guide/lfric.rst Outdated

@arporter arporter left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for making those changes Alistair. All good now.
I'll proceed to merge.

@arporter arporter merged commit eac730a into master Jul 23, 2025
11 checks passed
@arporter arporter deleted the 1312_metadata_for_arrays branch July 23, 2025 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement LFRic Issue relates to the LFRic domain under review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants