From e0135494451d5026734f6d0df6bdfed50662b93e Mon Sep 17 00:00:00 2001
From: Jaron Kent-Dobias <jaron@kent-dobias.com>
Date: Thu, 12 Oct 2017 18:00:24 -0400
Subject: fixed the metastable test condition

---
 src/wolff.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/wolff.c b/src/wolff.c
index 981a090..da57057 100644
--- a/src/wolff.c
+++ b/src/wolff.c
@@ -123,11 +123,6 @@ int main(int argc, char *argv[]) {
       n_clust++;
     }
 
-    double ss = 1;
-    if (s->spins[s->g->nv - 1]) {
-      ss = -1;
-    }
-
     double HH = 1;
     if (H < 0) {
       HH = -1;
@@ -137,7 +132,7 @@ int main(int argc, char *argv[]) {
     update_meas(aM, HH * fabs((double)(s->M)));
     update_meas(E, s->H);
 
-    if (HH * s->M * ss > 0) {
+    if (s->M > 0) {
       update_meas(eM, HH * fabs((double)(s->M)));
       update_meas(eE, s->H);
     } else {
-- 
cgit v1.2.3-70-g09d2