-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: add halo start indices to partition_metadata #67
Conversation
- minor tweaks to `DomainUtils` to add helper methods - `get_width` - `get_height` - added `Edge` enums and array `edges` for more readable loops over neighbours - reworked neighbour checking to be more consistent between periodic and non-periodic neighbours - add functionality to compute the starting indices for the halo regions in neighbouring domains - replaced loops over `NNBRS` to use the new `edges` enums - minor fix - ensure that `std::cerr` messages are followed by `exit(EXIT_FAILURE)`.
e040578
to
fc4afae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @TomMelt. I have a few minor comments and a request for more information. Could you elaborate on what exactly is meant by "add functionality to compute the starting indices for the halo regions in neighbouring domains"?
f810ef9
to
8bdc0fe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for these edits, things are much clearer now. Just one minor comment then I think it's good to go!
In order to send halo regions via MPI in the dynamics, we need to know the size of the domains and the starting indices of the halo regions.
This PR adds functionality we need to parallelize nextsimdg dynamics.
The following improvements have been made.
DomainUtils
to add helper methodsget_width
get_height
Edge
enums and arrayedges
for more readable loops over neighboursNNBRS
to use the newedges
enumsstd::cerr
messages are followed byexit(EXIT_FAILURE)
.TODO
halo_starts
)