From 0be38e2d375bc862b6e4be02540e9a6831a99bca Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Thu, 30 Jun 2016 20:12:23 -0400 Subject: [PATCH] accept data files without zlo/zhi. use -0.5/0.5 as implied in the docs --- src/read_data.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/read_data.cpp b/src/read_data.cpp index 9977eec5c2..c33ecd44e6 100644 --- a/src/read_data.cpp +++ b/src/read_data.cpp @@ -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;