X-Git-Url: http://git.treefish.org/~alex/phys/u1casc.git/blobdiff_plain/7a5913c428ac75aa2de2330fa926e8deb3457112..4825dc4854f6407d2fa77f60d52517ec567dd23e:/u1casc-flux/sim.hpp diff --git a/u1casc-flux/sim.hpp b/u1casc-flux/sim.hpp index 9eca3d7..496a28d 100644 --- a/u1casc-flux/sim.hpp +++ b/u1casc-flux/sim.hpp @@ -20,21 +20,22 @@ public: neigh *nb; int *l, *lp, *p; double kappa[2], lambda[2], Mu[2], beta; - + int wArg(int x, int i); + double WF(int nom, int denom, int iflav); + int iPlaq(int i, int j); + double I(int p); + void _newParas(); + private: + void _resetConfig(); void _makeSweep(); - void _newParas(); gsl_rng* rangsl; int lineSweep(); int lineUpdate(int x, int vardir); int cubeUpdate(int x, int orient); void getCube(int cube[3], int orient); int plaqUpdate(int x, int mu, int nu, int i); - int iPlaq(int i, int j); int lpUpdate(int x, int mu, int i); - double I(int p); - int wArg(int x, int i); - double WF(int nom, int denom, int iflav); static double wkern(double t, void *params); double wGsl(int n, int iflav); struct bcache { @@ -92,7 +93,7 @@ sim::sim(o815 *_O815) : o815::sim( _O815, } void sim::_makeSweep() -{ +{ lineSweep(); for( int x=0; xparaQ)["beta"]; Mu[0] = (*O815->paraQ)["muone"]; Mu[1] = (*O815->paraQ)["mutwo"]; +} - memset(confMem, 0, sizeof(int)*lsize4*(2*4+2*4+6)); +void sim::_resetConfig() { + memset(confMem, 0, confmemSize); } int sim::lineSweep()