From b49806d36a0c8a44b6e0d461a58e90d068e1460b Mon Sep 17 00:00:00 2001
From: Amulya <amulyapervaje@gmail.com>
Date: Wed, 7 Feb 2018 16:35:49 -0500
Subject: [PATCH] correct the logic for checking if fix is right

previously had incorrect logic for checking if fix is acceptable
---
 src/USER-MISC/temper_npt.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/USER-MISC/temper_npt.cpp b/src/USER-MISC/temper_npt.cpp
index 572a52b1a9..e405377d79 100644
--- a/src/USER-MISC/temper_npt.cpp
+++ b/src/USER-MISC/temper_npt.cpp
@@ -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
 
-- 
GitLab