Skip to content
Snippets Groups Projects
Commit cf9ed0d2 authored by Behzad Safaei's avatar Behzad Safaei
Browse files

Fix reneighbor procedure

parent e0ffcc87
No related branches found
No related tags found
No related merge requests found
...@@ -123,9 +123,11 @@ class InterfaceModules: ...@@ -123,9 +123,11 @@ class InterfaceModules:
reneighboring_procedures = [ reneighboring_procedures = [
Exchange(self.sim._comm), Exchange(self.sim._comm),
Borders(self.sim._comm), # Note: DomainUpdateLocal must happen after exchange since local particles must be contained in AABBs.
# Note: DomainUpdateLocal must happen after exchange since local particles must be contained in AABBs # And it must happen before Borders since newly received particles need to be included, so they become ghosts
# for their previous neighbor
DomainUpdateLocal(self.sim), DomainUpdateLocal(self.sim),
Borders(self.sim._comm),
BuildCellListsStencil(self.sim, self.sim.cell_lists), BuildCellListsStencil(self.sim, self.sim.cell_lists),
self.sim.update_cells_procedures, self.sim.update_cells_procedures,
ResetVolatileProperties(self.sim) ResetVolatileProperties(self.sim)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment