Skip to content
Snippets Groups Projects
Unverified Commit b49806d3 authored by Amulya's avatar Amulya Committed by GitHub
Browse files

correct the logic for checking if fix is right

previously had incorrect logic for checking if fix is acceptable
parent fa4c7fc6
No related branches found
No related tags found
No related merge requests found
...@@ -101,9 +101,9 @@ void TemperNPT::command(int narg, char **arg) ...@@ -101,9 +101,9 @@ void TemperNPT::command(int narg, char **arg)
// change the volume. This currently only applies to fix npt and // change the volume. This currently only applies to fix npt and
// fix rigid/npt variants // fix rigid/npt variants
if ((strncmp(modify->fix[whichfix]->style,"npt",3) == 0) if ((strncmp(modify->fix[whichfix]->style,"npt",3) != 0)
|| (strncmp(modify->fix[whichfix]->style,"rigid/npt",9) == 0)) && (strncmp(modify->fix[whichfix]->style,"rigid/npt",9) != 0))
error->universe_all(FLERR,"Tempering temperature fix is not supported"); error->universe_all(FLERR,"Tempering temperature and pressure fix is not supported");
// setup for long tempering run // setup for long tempering run
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment