diff --git a/src/irregular.cpp b/src/irregular.cpp index 072209af09..77a4405e88 100644 --- a/src/irregular.cpp +++ b/src/irregular.cpp @@ -117,7 +117,7 @@ void Irregular::migrate_atoms(int sortflag, int preassign, int *procassign) // exchange() doesn't need to clear ghosts b/c borders() // is called right after and it clears ghosts and calls map_set() - if (map_style) atom->map_clear(); + if (map_style != Atom::MAP_NONE) atom->map_clear(); atom->nghost = 0; atom->avec->clear_bonus();