Conversation
niravshah241
left a comment
There was a problem hiding this comment.
Overall, looks good. Some quick formulae checks and making private members to public in partition.hpp have been suggested.
The unit tests for is_corner_neighbour and haloCornerBufferPositions (previously halo_corner_start) have been written in the branch add-periodic-corner-nbrs. (It will need some changes depending upon final function calls and index changes.)
0e4179e to
66cd9d5
Compare
66cd9d5 to
b8ef5f5
Compare
|
Tests are added to this branch. The tests in |
b8ef5f5 to
4441ccf
Compare
|
Tests related to In addition the images for tests have now been added in |
There is no difference. I had made a typo in the doc string but the functionality is correct. This has been fixed in commit 5380006 Please remove the image from the img folder. If we want to upload an image it should be svg and have more description. FWIW we can see the domain layout looking at the partition_mask files. |
joewallwork
left a comment
There was a problem hiding this comment.
Thanks for this. I've not gone through all the working of the subdomains, numbers, neighbours etc because I figured you'd have it right between the two of you. However, I do have some comments and suggestions that it'd be good to address before merging.
remove neighbour check logic from domain_overlap update comments in is_neighbour to reflect the changes in Partitioner we still check the halo_size is non-zero but this will always be true, so it is not a problem.
joewallwork
left a comment
There was a problem hiding this comment.
I just have some minor formatting suggestions but otherwise I think it looks good.
Co-authored-by: Joe Wallwork <22053413+joewallwork@users.noreply.github.com>
This PR fixes corner neighbour metadata for periodic boundaries
Key Changes
haloCornerBufferPositions()logic to correctly handle periodic boundary conditionsTests
test_haloBufferPositions.cpptest_haloCornerBufferPositions.cpptest_is_corner_neighbour.cpptest_is_neighbour.cppTODO:
haloCornerBufferPositionshaloBufferPositionsfunctions @niravshah241 is working onhaloBufferPositionstohaloEdgeBufferPositions(this will be handled in a following PR -- see issue cosmetic changes to domain_decomp #80 )haloCornerBufferPositionsfor periodic corner neighbours (@niravshah241 is double checking)test_halo_corner_starttest is failing -> See https://github.com/Fix corner starts #78/commits/b8ef5f59ec36814b6029fe174bc70a37ba888581
haloBufferPositions(i.e., use same approach ashaloCornerBufferPositions)