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

Fortran BoxArray: Add nboxes function returning the number of boxes. #4096

Merged
merged 2 commits into from
Aug 19, 2024

Conversation

WeiqunZhang
Copy link
Member

Note that the function returns the total number of boxes including ones not owned by the MPI process calling the function.

Note that the function returns the total number of boxes including ones not
owned by the MPI process calling the function.
@WeiqunZhang WeiqunZhang linked an issue Aug 19, 2024 that may be closed by this pull request
@WeiqunZhang WeiqunZhang merged commit c49d35e into AMReX-Codes:development Aug 19, 2024
71 of 72 checks passed
@WeiqunZhang WeiqunZhang deleted the nboxes branch August 19, 2024 23:21
@desjardi
Copy link

Great, thanks for the blazing fast turn-around! Quick question though - I see that you have the number of boxes returned as a long/integer(amrex_long), but the get_box function takes in an integer. That seems inconsistent, and may need to be changed so that both procedures use long and integer(amrex_long)?

@WeiqunZhang
Copy link
Member Author

Yes, you are right that the two are not consistent. Unfortunately the inconsistency has already existed in the C++ code.

@desjardi
Copy link

Fair enough - thanks again for your help!

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.

Easiest way to access boxes in fortran
3 participants