Commit f6f27588 authored by Lukas Weber's avatar Lukas Weber
Browse files

change visibility of some rng stuff

parent cb13783c
...@@ -13,7 +13,6 @@ using namespace std; ...@@ -13,7 +13,6 @@ using namespace std;
class abstract_mc class abstract_mc
{ {
private: private:
randomnumbergenerator * rng = 0;
void param_init(string dir); void param_init(string dir);
void random_clear(); void random_clear();
...@@ -26,6 +25,8 @@ class abstract_mc ...@@ -26,6 +25,8 @@ class abstract_mc
int therm = 0; int therm = 0;
protected: protected:
parser param; parser param;
randomnumbergenerator *rng = 0;
double random01();
virtual void init() = 0; virtual void init() = 0;
virtual void write(odump &out) = 0; virtual void write(odump &out) = 0;
...@@ -33,7 +34,6 @@ class abstract_mc ...@@ -33,7 +34,6 @@ class abstract_mc
virtual void write_output(std::ofstream &f) = 0; virtual void write_output(std::ofstream &f) = 0;
virtual void do_update() = 0; virtual void do_update() = 0;
public: public:
double random01();
int sweep() const; int sweep() const;
virtual void do_measurement() = 0; virtual void do_measurement() = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment