From ee55a981032f07949b6e1f8ffd7cf8a430ec9b79 Mon Sep 17 00:00:00 2001
From: Stefan Paquay <stefanpaquay@gmail.com>
Date: Tue, 28 Mar 2017 11:22:10 -0400
Subject: [PATCH] Changed the check on initial and final temperature to <= 0
 for both.

---
 src/fix_nh.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/fix_nh.cpp b/src/fix_nh.cpp
index 0f1f3395dd..c99c7a34bd 100644
--- a/src/fix_nh.cpp
+++ b/src/fix_nh.cpp
@@ -133,7 +133,7 @@ FixNH::FixNH(LAMMPS *lmp, int narg, char **arg) :
       t_target = t_start;
       t_stop = force->numeric(FLERR,arg[iarg+2]);
       t_period = force->numeric(FLERR,arg[iarg+3]);
-      if (t_start < 0.0 || t_stop <= 0.0)
+      if (t_start <= 0.0 || t_stop <= 0.0)
         error->all(FLERR,
                    "Target temperature for fix nvt/npt/nph cannot be 0.0");
       iarg += 4;
-- 
GitLab