Commit 18e9b111 authored by jrgissing's avatar jrgissing
Browse files

add consistent 'particle overflow' error for serial

parent aa1d0f3d
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -889,7 +889,13 @@ void CreateAtoms::lattice_mask()
    delete [] allnlattpts;
    delete [] allnboxmes;
    delete [] cumsum_lattpts;
  } else nboxme = ninsert;
  } else {
    if (ninsert > nlattpts)
       error->one(FLERR,"Attempting to insert more particles than available lattice points");
    nboxme = ninsert;
  }



 // probably faster to have individual processors 're-choose' their random points
  // Nmask will be used to indicate which lattice points to insert