X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?p=alexxy%2Fgromacs.git;a=blobdiff_plain;f=src%2Fgromacs%2Ffileio%2Ftpxio.cpp;fp=src%2Fgromacs%2Ffileio%2Ftpxio.cpp;h=f8b0ced58defbeb726d921d29b5b9480923a4e01;hp=d190d663ed65439cde1a942b82d33e4199ba6572;hb=34d6029f0f7e1b521b148eae4164d02e28911db5;hpb=69d9df0fb1f51869e7f266416c1c3dbe637360ac diff --git a/src/gromacs/fileio/tpxio.cpp b/src/gromacs/fileio/tpxio.cpp index d190d663ed..f8b0ced58d 100644 --- a/src/gromacs/fileio/tpxio.cpp +++ b/src/gromacs/fileio/tpxio.cpp @@ -140,6 +140,7 @@ enum tpxv tpxv_TransformationPullCoord, /**< Support for transformation pull coordinates */ tpxv_SoftcoreGapsys, /**< Added gapsys softcore function */ tpxv_ReaddedConstantAcceleration, /**< Re-added support for constant acceleration NEMD. */ + tpxv_RemoveTholeRfac, /**< Remove unused rfac parameter from thole listed force */ tpxv_Count /**< the total number of tpxv versions */ }; @@ -1899,7 +1900,12 @@ static void do_iparams(gmx::ISerializer* serializer, t_functype ftype, t_iparams serializer->doReal(&iparams->thole.a); serializer->doReal(&iparams->thole.alpha1); serializer->doReal(&iparams->thole.alpha2); - serializer->doReal(&iparams->thole.rfac); + if (file_version < tpxv_RemoveTholeRfac) + { + real noRfac = 0; + serializer->doReal(&noRfac); + } + break; case F_LJ: serializer->doReal(&iparams->lj.c6);