accept data files without zlo/zhi. use -0.5/0.5 as implied in the docs

This commit is contained in:
Axel Kohlmeyer
2016-06-30 20:12:23 -04:00
parent 0666674afc
commit 0be38e2d37

View File

@ -349,6 +349,10 @@ void ReadData::command(int narg, char **arg)
triclinic = 0;
boxlo[0] = boxlo[1] = boxlo[2] = 0.0;
boxhi[0] = boxhi[1] = boxhi[2] = 0.0;
if (domain->dimension == 2) {
boxlo[2] = -0.5;
boxhi[2] = 0.5;
}
keyword[0] = '\0';
nlocal_previous = atom->nlocal;