Skip to content

Conversation

@TomMelt
Copy link
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
* need to create arrays to store periodic neighbours
* need to output these arrays in Partitioner::save_metadata
* need to add tests (integration)
@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

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

@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
}

int Partitioner::halo_corner_start(const Domain d1, const Domain d2, const Vertex vertex)
int Partitioner::halo_corner_start(
Copy link
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.

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.

3 participants