Skip to content

#1312 fix scalar array functionality - #3519

Closed
mo-alistairp wants to merge 6 commits into
masterfrom
1312_fix_scalar_array_functionality
Closed

#1312 fix scalar array functionality#3519
mo-alistairp wants to merge 6 commits into
masterfrom
1312_fix_scalar_array_functionality

Conversation

@mo-alistairp

Copy link
Copy Markdown
Collaborator

The gh_scalar_array functionality is not working as intended. The generated kernel subroutine includes an array of the extents of the dimensions of the scalar array in the the list of arguments. This isn't being generated in the corresponding invoke call. As a result the mismatch in arguments causes build errors when gh_scalar_array is used.

This was likely because kern_call_invoke_arg_list.py was missed. This wasn't picked up by testing because the algorithm layer doesn't get compiled. As a way to verify that this functionality does work I'll also add an example using gh_scalar_array that gets compiled to ensure that it builds correctly. I'll probably also add a bit more documentation to aid users.

@mo-alistairp mo-alistairp self-assigned this Jul 31, 2026
@mo-alistairp mo-alistairp added bug in progress LFRic Issue relates to the LFRic domain LFRic PSyKAl-lite Issue related to removal of PSyKAl-lite code in LFRic labels Jul 31, 2026
@mo-alistairp mo-alistairp changed the title (closes #1312) fix scalar array functionality #1312 fix scalar array functionality Jul 31, 2026
@mo-alistairp

Copy link
Copy Markdown
Collaborator Author

This mistakenly has changes from another branch in it so I'm closing this PR and the correct changes are in #3520

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug in progress LFRic PSyKAl-lite Issue related to removal of PSyKAl-lite code in LFRic LFRic Issue relates to the LFRic domain

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant