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

Add contiguous attribute for arrays passed to c functions #242

Merged
merged 3 commits into from
Nov 6, 2024

Conversation

mattldawson
Copy link
Collaborator

Adds the contiguous attribute to fortran API function array arguments that are passed as C-style pointers to MUSICA library C functions. This allows strided-access array slices to be passed to these functions, but still pass contiguous-in-memory arrays to the C functions. Updates related tests to pass array slices from fortran.

Copy link
Collaborator

@boulderdaze boulderdaze 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!

@mattldawson mattldawson merged commit 9993aa3 into main Nov 6, 2024
66 checks passed
@mattldawson mattldawson deleted the develop-add-contiguous branch November 6, 2024 18:39
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.

3 participants