4 #include <gsl/gsl_rng.h>
8 #include "latlib/neigh.h"
10 class sim : public o815::sim {
27 void updatePhi (const int& x);
32 sim::sim(o815 *_O815) : o815::sim( _O815,
34 (_O815->comargs.lsize[0]*_O815->comargs.lsize[1]) ) {
35 conf = (siteconf*)confMem;
37 rangsl = gsl_rng_alloc(gsl_rng_ranlxs0);
38 gsl_rng_set(rangsl, time(NULL));
40 LSIZE2 = _O815->comargs.lsize[0] * _O815->comargs.lsize[1];
42 nb = new neigh(2, _O815->comargs.lsize[0], _O815->comargs.lsize[1]);
45 void sim::updatePhi (const int& x)
47 const double r = gsl_rng_uniform(rangsl);
48 const double theta = gsl_rng_uniform(rangsl) * 2*M_PI;
51 void sim::_makeSweep() {
54 void sim::_newParas() {