X-Git-Url: http://git.treefish.org/~alex/phys/heatbath.git/blobdiff_plain/506d28f364bd7d85dc0c467f217054fdc9cf9f6e..2845de363d157f4e7b3ad37c4d4b13a8d77bf449:/sim-nor.hpp?ds=sidebyside diff --git a/sim-nor.hpp b/sim-nor.hpp index 2f5d22c..b67f8a7 100644 --- a/sim-nor.hpp +++ b/sim-nor.hpp @@ -17,14 +17,15 @@ public: sim(o815 *_O815); siteconf* conf; unsigned int LSIZE2; + double M; + double m; + neigh *nb; private: void _makeSweep(); void _newParas(); gsl_rng* rangsl; - neigh *nb; int updatePhi (const int& x); - double M; double SofPhi(const int& x, const complex& phix); double rhoPhi(const int& x, const complex& phixCandidate); }; @@ -52,9 +53,12 @@ void sim::_makeSweep() { } void sim::_newParas() { + m = (*O815->paraQ)["mass"]; M = pow( (*O815->paraQ)["mass"], 2 ) + 4; *log << "SIM: Resetting fields." << endl << flush; - memset(conf, 0, sizeof(siteconf)*LSIZE2); + + for (int ix=0; ix