correct the logic for checking if fix is right

previously had incorrect logic for checking if fix is acceptable
This commit is contained in:
Amulya
2018-02-07 16:35:49 -05:00
committed by GitHub
parent fa4c7fc664
commit b49806d36a

View File

@ -101,9 +101,9 @@ void TemperNPT::command(int narg, char **arg)
// change the volume. This currently only applies to fix npt and
// fix rigid/npt variants
if ((strncmp(modify->fix[whichfix]->style,"npt",3) == 0)
|| (strncmp(modify->fix[whichfix]->style,"rigid/npt",9) == 0))
error->universe_all(FLERR,"Tempering temperature fix is not supported");
if ((strncmp(modify->fix[whichfix]->style,"npt",3) != 0)
&& (strncmp(modify->fix[whichfix]->style,"rigid/npt",9) != 0))
error->universe_all(FLERR,"Tempering temperature and pressure fix is not supported");
// setup for long tempering run