Skip to content

Add periodic corner neighbours#77

Merged
TomMelt merged 39 commits intoneighbourhood_diagonalfrom
add-periodic-corner-nbrs
Feb 10, 2026
Merged

Add periodic corner neighbours#77
TomMelt merged 39 commits intoneighbourhood_diagonalfrom
add-periodic-corner-nbrs

Conversation

@TomMelt
Copy link
Copy Markdown
Contributor

@TomMelt TomMelt commented Nov 11, 2025

Add Periodic neighbours to metadata

This PR does the following:

  • adds logic to identify periodic corner neighbours.
  • adds functionality to write them to the metadata file.
  • Whilst I have updated the existing integration test to pass with the new output, I haven't explicitly tested periodic neighbours in the integration test.

TODO

  • need to create arrays to store periodic neighbours
  • need to output these arrays in Partitioner::save_metadata
  • need to add tests (integration)

@TomMelt TomMelt requested a review from niravshah241 November 11, 2025 09:26
@TomMelt TomMelt self-assigned this Nov 11, 2025
@TomMelt TomMelt added the ICCS label Nov 11, 2025
@TomMelt TomMelt marked this pull request as draft November 11, 2025 09:26
@TomMelt TomMelt force-pushed the add-periodic-corner-nbrs branch from 98a1cca to bbfc171 Compare November 11, 2025 13:00
@TomMelt TomMelt mentioned this pull request Nov 11, 2025
@niravshah241
Copy link
Copy Markdown

niravshah241 commented Nov 12, 2025

Changes overall look good to me. I will be adding some tests to see it running. I guess most changes are related to:

  • Changing vector with array
  • Addition of periodic logic
  • Change of variable name for readability and/or uniformity with other code

Is their something else that I missed?

Copy link
Copy Markdown

@niravshah241 niravshah241 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. One more test will be added (for top and bottom overlapping neighbour) in PR #76

@TomMelt TomMelt marked this pull request as ready for review November 17, 2025 10:39
Comment thread Partitioner.cpp Outdated
}

int Partitioner::halo_corner_start(const Domain d1, const Domain d2, const Vertex vertex)
int Partitioner::halo_corner_start(
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@niravshah241 just flagging, I didn't verify/test Partitioner::halo_corner_start() for periodic neighbours. So it might be incorrect.

@TomMelt TomMelt force-pushed the add-periodic-corner-nbrs branch from f5b4781 to 7ea7ea0 Compare February 10, 2026 20:16
@TomMelt TomMelt merged commit ba485f4 into neighbourhood_diagonal Feb 10, 2026
@TomMelt TomMelt deleted the add-periodic-corner-nbrs branch February 10, 2026 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants