diff --git a/Grid/lattice/Lattice_rng.h b/Grid/lattice/Lattice_rng.h index e5e63716..5b66ff34 100644 --- a/Grid/lattice/Lattice_rng.h +++ b/Grid/lattice/Lattice_rng.h @@ -32,8 +32,9 @@ #include #ifdef RNG_SITMO -#include +#include #endif +#include #if defined(RNG_SITMO) #define RNG_FAST_DISCARD @@ -142,8 +143,8 @@ public: std::vector _generators; std::vector > _uniform; - std::vector > _gaussian; - std::vector > _bernoulli; + std::vector > _gaussian; + // std::vector > _bernoulli; std::vector > _uid; /////////////////////// @@ -243,8 +244,8 @@ public: GridSerialRNG() : GridRNGbase() { _generators.resize(1); _uniform.resize(1,std::uniform_real_distribution{0,1}); - _gaussian.resize(1,std::normal_distribution(0.0,1.0) ); - _bernoulli.resize(1,std::discrete_distribution{1,1}); + _gaussian.resize(1,gaussian_distribution(0.0,1.0) ); + // _bernoulli.resize(1,std::discrete_distribution{1,1}); _uid.resize(1,std::uniform_int_distribution() ); } @@ -357,8 +358,8 @@ public: _generators.resize(_vol); _uniform.resize(_vol,std::uniform_real_distribution{0,1}); - _gaussian.resize(_vol,std::normal_distribution(0.0,1.0) ); - _bernoulli.resize(_vol,std::discrete_distribution{1,1}); + _gaussian.resize(_vol,gaussian_distribution(0.0,1.0) ); + // _bernoulli.resize(_vol,std::discrete_distribution{1,1}); _uid.resize(_vol,std::uniform_int_distribution() ); } @@ -515,11 +516,11 @@ public: template inline void random(GridParallelRNG &rng,Lattice &l) { rng.fill(l,rng._uniform); } template inline void gaussian(GridParallelRNG &rng,Lattice &l) { rng.fill(l,rng._gaussian); } -template inline void bernoulli(GridParallelRNG &rng,Lattice &l){ rng.fill(l,rng._bernoulli);} +//template inline void bernoulli(GridParallelRNG &rng,Lattice &l){ rng.fill(l,rng._bernoulli);} template inline void random(GridSerialRNG &rng,sobj &l) { rng.fill(l,rng._uniform ); } template inline void gaussian(GridSerialRNG &rng,sobj &l) { rng.fill(l,rng._gaussian ); } -template inline void bernoulli(GridSerialRNG &rng,sobj &l){ rng.fill(l,rng._bernoulli); } +//template inline void bernoulli(GridSerialRNG &rng,sobj &l){ rng.fill(l,rng._bernoulli); } NAMESPACE_END(Grid); #endif