Skip to content

Commit

Permalink
Updates for GROMACS2021
Browse files Browse the repository at this point in the history
  • Loading branch information
jvermaas committed May 6, 2021
1 parent 06eb826 commit 5391c7f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 17 deletions.
14 changes: 1 addition & 13 deletions ffread.h
Original file line number Diff line number Diff line change
Expand Up @@ -287,19 +287,6 @@ void readparams (XDR* xdrs, int file_version, int ftype) {
readReal<real>(xdrs);
break;
case F_RBDIHS:
readReal<real>(xdrs);
readReal<real>(xdrs);
readReal<real>(xdrs);
readReal<real>(xdrs);
readReal<real>(xdrs);
readReal<real>(xdrs);
readReal<real>(xdrs);
readReal<real>(xdrs);
readReal<real>(xdrs);
readReal<real>(xdrs);
readReal<real>(xdrs);
readReal<real>(xdrs);
break;
case F_FOURDIHS:
readReal<real>(xdrs);
readReal<real>(xdrs);
Expand All @@ -323,6 +310,7 @@ void readparams (XDR* xdrs, int file_version, int ftype) {
readReal<real>(xdrs);
readReal<real>(xdrs);
break;
case F_VSITE1: break; //VSite1 has no parameters
case F_VSITE2FD:
case F_VSITE2:
readReal<real>(xdrs);
Expand Down
Binary file added testtprs/2021.1minimize.tpr
Binary file not shown.
4 changes: 3 additions & 1 deletion tprformat.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ enum
F_CONSTR,
F_CONSTRNC,
F_SETTLE,
F_VSITE1,
F_VSITE2,
F_VSITE2FD,
F_VSITE3,
Expand Down Expand Up @@ -191,7 +192,8 @@ static const t_ftupd ftupd[] = {
{ 79, F_DVDL_RESTRAINT },
{ 79, F_DVDL_TEMPERATURE },
{ 117, F_DENSITYFITTING },
{ 118, F_VSITE2FD }
{ 118, F_VSITE2FD },
{ 121, F_VSITE1 }
};
#define asize(a) ((int)(sizeof(a)/sizeof((a)[0])))
#define NFTUPD asize(ftupd)
6 changes: 3 additions & 3 deletions tprplugin.C
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ int readtprAfterPrecision (tprdata *tpr) {
xdr_setpos(xdrs, 4 + xdr_getpos(xdrs));
}
//Bailouts if things are too new/we can't guarantee accurately reading them.
if (tpr->wversion > 27 || tpr->version <= 57) {
printf("Your file cannot be read, as it has version %d, but we can read from version 57 to at least 113.\n", tpr->version);
printf("The generator version for your file is %d, but we can only read up to 27\n", tpr->wversion);
if (tpr->wversion > 28 || tpr->version <= 57) {
printf("Your file cannot be read, as it has version %d, but we can read from version 57 to at least 122.\n", tpr->version);
printf("The generator version for your file is %d, but we can only read up to 28\n", tpr->wversion);
return MOLFILE_ERROR;
}

Expand Down

0 comments on commit 5391c7f

Please sign in to comment.