]> git.treefish.org Git - phys/heatbath.git/blobdiff - sim-r.hpp
Initializing fields to 1 for all algorithms.
[phys/heatbath.git] / sim-r.hpp
index ae6adc4c3ce03ee2787d857fa2fb481df9c58ad1..c49f736ad386214a78fbbc0db6fc6d95c8b5ffa0 100644 (file)
--- a/sim-r.hpp
+++ b/sim-r.hpp
@@ -64,7 +64,9 @@ void sim::_makeSweep() {
 void sim::_newParas() {
   M = pow( (*O815->paraQ)["mass"], 2 ) + 4;
   *log << "SIM: Resetting fields." << endl << flush;
-  memset(conf, 0, sizeof(siteconf)*LSIZE2);
+
+  for (int ix=0; ix<LSIZE2; ix++)
+    conf[ix].phi = 1;
 }
 
 #endif