Fixed essential dynamics (ED) continuation from .cpt for reference=average
authorCarsten Kutzner <ckutzne@gwdg.de>
Fri, 6 Dec 2013 11:56:11 +0000 (12:56 +0100)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Mon, 23 Dec 2013 21:00:08 +0000 (22:00 +0100)
commitda4ab0d23d43cd3c620e0666e0b6ad8fa3194438
tree38296c985e97e05a8dc0e8c62513c0e111dd9715
parent5cb0ab4d522f6aa6a3b696db9fc08c9b861602ce
Fixed essential dynamics (ED) continuation from .cpt for reference=average

ED runs where the reference and average structure indices are the same can
crash when continued from checkpoint. For these cases (where reference =
average atom indices) obviously the set of atomic positions for the reference
and average structures is always identical. Therefore, only one of the two
structures is stored (which is the average structure edi->sav). When reading
the old values of these structures from the checkpoint file, edi->sav.x_old
therefore needs to be copied both to xstart and xfit in init_edsam().

Change-Id: Ieb1f029f4a927999dfb4579ee7c3bebe15071dc8
src/mdlib/edsam.c