[gmx-developers] tpxio.c

H.J.Risselada H.J.Risselada at rug.nl
Wed Mar 8 12:33:52 CET 2006


 gmx-developers at gromacs.org
X-Mailer: CommuniGate Pro WebUser Interface v.4.3.9
Date: Wed, 08 Mar 2006 12:33:52 +0100
Message-ID: <web-17289321 at mail3.rug.nl>
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 8bit


In tpxio.c the folowing expression is not waterproof:

do_int(ir->nstcomm);
     if (file_version > 34)
       do_int(ir->comm_mode);
     else if (ir->nstcomm < 0) {
       ir->comm_mode = ecmANGULAR;
       ir->nstcomm = -ir->nstcomm;
     }
     else
       ir->comm_mode = ecmLINEAR;


For cheating combinations in versions < 34 like:

=angular
= -1

nstcomm will not necessarily become absolute.

greetings

Jelger







More information about the gromacs.org_gmx-developers mailing list