From 732704c7edd6168cf3c6cb081e49a9cba09f2475 Mon Sep 17 00:00:00 2001 From: Paul Bauer Date: Mon, 30 Apr 2018 11:44:08 +0200 Subject: [PATCH] Fix md -cpi -noappend Apparently the noappend option for mpi has been broken when the checkpoint file reading was refactored. This fixes the issue by properly setting the simulation_part variable in the ir from the checkpoint file. Fixes: #2494 Change-Id: Ic1cfe6c15d725edda4a54d8a93bd6b0734db7d3a --- src/gromacs/fileio/checkpoint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gromacs/fileio/checkpoint.cpp b/src/gromacs/fileio/checkpoint.cpp index 20a100e645..26dff8a6c5 100644 --- a/src/gromacs/fileio/checkpoint.cpp +++ b/src/gromacs/fileio/checkpoint.cpp @@ -2523,7 +2523,7 @@ void load_checkpoint(const char *fn, FILE **fplog, ir->nsteps += ir->init_step - headerContents.step; } ir->init_step = headerContents.step; - ir->simulation_part += 1; + ir->simulation_part = headerContents.simulation_part + 1; } void read_checkpoint_part_and_step(const char *filename, -- 2.11.4.GIT