git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@8324 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2012-06-19 14:20:28 +00:00
parent 7fe9d10362
commit ba6063c7a3
1 changed files with 3 additions and 0 deletions

View File

@ -336,6 +336,9 @@ void CreateAtoms::add_random()
// iterate until atom is within region and triclinic simulation box
// if final atom position is in my subbox, create it
if (xlo > xhi || ylo > yhi || zlo > zhi)
error->all(FLERR,"No overlap of box and region for create_atoms");
int valid;
for (int i = 0; i < nrandom; i++) {
while (1) {