forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@8324 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
7fe9d10362
commit
ba6063c7a3
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue