MPI exchange

Submitted by rkumar310 on Tue, 08/20/2013 - 05:35

Hi,
I had a question about the exchange function in Comm class Comm::exchange(). The comment in the code says that atoms are exchanged with 6 stencil neighbors. However in 3d would not there be 26 neighbors of any given (internal) grid cell? It is certainly possible that particles could move to the "diagonal" processors. Can someone please explain why the exchange occurs with only 6 neighbors.

Thanks,
Rahul

ckloss's picture

ckloss | Fri, 08/30/2013 - 15:02

>> Can someone please explain why the exchange occurs with only 6 neighbors.
This is done in x, y, z direction consecutively so that in the end neighbors are communicated diagonally

Cheers
Christoph