From 99f67ba8bbe9a51bd0752ed8841d8b66e8bdc842 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Mon, 23 Sep 2013 17:30:16 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@10825 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/read_data.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/read_data.cpp b/src/read_data.cpp index f74314e9ba..c97be2fdff 100644 --- a/src/read_data.cpp +++ b/src/read_data.cpp @@ -733,7 +733,8 @@ void ReadData::bodies() bigint natoms = nbodies; while (nread < natoms) { - nchunk = MIN(natoms-nread,CHUNK); + if (natoms-nread > CHUNK) nmax = CHUNK; + else nmax = natoms-nread; if (me == 0) { nchunk = 0;