From 5f0823172c4a2f76f6385e011e90876a08e7390c Mon Sep 17 00:00:00 2001 From: Tim Mattox Date: Mon, 27 Mar 2017 06:35:19 -0400 Subject: [PATCH] Make read_restart properly size the atom_vec_* data when reading via mpiio --- src/read_restart.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/read_restart.cpp b/src/read_restart.cpp index 6a950353ef..92d21a7062 100644 --- a/src/read_restart.cpp +++ b/src/read_restart.cpp @@ -208,6 +208,7 @@ void ReadRestart::command(int narg, char **arg) mpiio->read((headerOffset+assignedChunkOffset),assignedChunkSize,buf); mpiio->close(); + if (assignedChunkSize > atom->nmax) avec->grow(assignedChunkSize); m = 0; while (m < assignedChunkSize) m += avec->unpack_restart(&buf[m]); }