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

Memory layout of multi-dimensional arrays #21

Open
RPIFisherman opened this issue Oct 15, 2023 · 0 comments
Open

Memory layout of multi-dimensional arrays #21

RPIFisherman opened this issue Oct 15, 2023 · 0 comments

Comments

@RPIFisherman
Copy link
Contributor

RPIFisherman commented Oct 15, 2023

C++ uses a row-major layout, while Fortran uses a column-major layout. Make sure the values are passed correctly.
Need to understand data layout/ordering in polympo_[s|g]etMeshOnSurf....Incr (on both fortran and C++ sides), there seems to be transpose issue and we do not see it in fortran side due to error cancellation for call sequence of first 'set' API and then 'get' API (need to investigate)

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

No branches or pull requests

1 participant