update plumed support to include version 2.6.0. Fix bug in API check

This commit is contained in:
Axel Kohlmeyer
2020-02-13 15:57:26 +01:00
parent 5d467bcc74
commit 4cacc4701d
7 changed files with 64 additions and 53 deletions

View File

@ -78,8 +78,9 @@ FixPlumed::FixPlumed(LAMMPS *lmp, int narg, char **arg) :
int api_version;
p->cmd("getApiVersion",&api_version);
if (api_version > 6)
error->all(FLERR,"Incompatible API version for PLUMED in fix plumed");
if ((api_version < 5) || (api_version > 7))
error->all(FLERR,"Incompatible API version for PLUMED in fix plumed. "
"Only Plumed 2.4.x, 2.5.x, and 2.6.x are tested and supported.");
// If the -partition option is activated then enable
// inter-partition communication