devito icon indicating copy to clipboard operation
devito copied to clipboard

`distributor._obj_neighborhood` attribute error in serial

Open rhodrin opened this issue 4 years ago • 1 comments

Take for example the following script:

from devito import Grid

grid = Grid(shape=(8, 8))
print(grid.distributor._obj_neighborhood)

This results in AttributeError: 'mpi4py.MPI.Comm' object has no attribute 'Shift' when run in serial. This is probably not the behavior we want.

rhodrin avatar Nov 29 '19 15:11 rhodrin

This can be reproduced when serial but with DEVITO_MPI=0. If DEVITO_MPI=1 and mpirun -n 1 results in nb.

georgebisbas avatar Feb 04 '20 14:02 georgebisbas