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;