]> git.treefish.org Git - phys/heatbath.git/blobdiff - heatbath.cpp
Added phi2_hist.
[phys/heatbath.git] / heatbath.cpp
index dbfe63ae7aa2bd0f52455d22a951fe212e87418b..13b6f5114ae42dcc6a2bd2d63a14b5e168a83b3b 100644 (file)
@@ -16,6 +16,7 @@
 #endif
 
 #include "obs_phi2.hpp"
 #endif
 
 #include "obs_phi2.hpp"
+#include "obs_phi2_hist.hpp"
 
 o815 *O815;
 sim *Sim;
 
 o815 *O815;
 sim *Sim;
@@ -48,7 +49,11 @@ void parseLonelyArgs()
     if ( strcmp(*lonit, "phi2") == 0 ) {
       *O815->out->log << "MASTER: registered observable: phi2" << endl << flush;
       O815->observables.push_back(new obs_phi2(O815));
     if ( strcmp(*lonit, "phi2") == 0 ) {
       *O815->out->log << "MASTER: registered observable: phi2" << endl << flush;
       O815->observables.push_back(new obs_phi2(O815));
-    } 
+    }
+    else if ( strcmp(*lonit, "phi2_hist") == 0 ) {
+      *O815->out->log << "MASTER: registered observable: phi2_hist" << endl << flush;
+      O815->observables.push_back(new obs_phi2_hist(O815));
+    }
   }
 }
 
   }
 }