]> git.treefish.org Git - phys/u1casc.git/blobdiff - u1casc-ordinary/obs_plaq.hpp
Bug in new prejack observables.
[phys/u1casc.git] / u1casc-ordinary / obs_plaq.hpp
index 2f09096bd1837033a5ec22ff3be971b7af5bbfcd..63e5296c1159cd88cab20b4185386e151eff2cd4 100644 (file)
@@ -94,10 +94,9 @@ void obs_plaq::prePlaqSus(vector< vector <double> > *allVals, vector <double> *p
 }
 
 double obs_plaq::plaqSus(vector <double> *preCalculated, vector<double> *excludedMeas, int nmeas, void *para) {
 }
 
 double obs_plaq::plaqSus(vector <double> *preCalculated, vector<double> *excludedMeas, int nmeas, void *para) {
-  return (( (*preCalculated)[1] - pow((*excludedMeas)[0], 2) )
-         - pow( (*preCalculated)[0] - (*excludedMeas)[0], 2 ))
-    * *(int*)para * 6
-    / (nmeas-1);
+  return (( (*preCalculated)[1] - pow((*excludedMeas)[0], 2) ) / (nmeas-1)
+         - pow( ( (*preCalculated)[0] - (*excludedMeas)[0] ) / (nmeas-1), 2 ))
+    * *(int*)para * 6;
 }
 
 #endif
 }
 
 #endif