summaryrefslogtreecommitdiff
path: root/examples/ising_random_field.cpp
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2019-12-13 16:18:03 -0500
committerJaron Kent-Dobias <jaron@kent-dobias.com>2019-12-13 16:18:03 -0500
commita75a3b44ffe9c99fc6d1c07ba4c4542b85f02790 (patch)
tree6281a4e84eb92105c3a4a8433d0aeef8271ec632 /examples/ising_random_field.cpp
parent4991418a416b75680737ec8f1e47b355b219728d (diff)
downloadc++-a75a3b44ffe9c99fc6d1c07ba4c4542b85f02790.tar.gz
c++-a75a3b44ffe9c99fc6d1c07ba4c4542b85f02790.tar.bz2
c++-a75a3b44ffe9c99fc6d1c07ba4c4542b85f02790.zip
fixed some bugs due to new class in global namespace
Diffstat (limited to 'examples/ising_random_field.cpp')
-rw-r--r--examples/ising_random_field.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/ising_random_field.cpp b/examples/ising_random_field.cpp
index 9284797..5907523 100644
--- a/examples/ising_random_field.cpp
+++ b/examples/ising_random_field.cpp
@@ -55,7 +55,7 @@ int main(int argc, char *argv[]) {
// initialize the random number generator
auto seed = std::chrono::high_resolution_clock::now().time_since_epoch().count();
- std::mt19937 rng{seed};
+ std::mt19937 rng(seed);
// define the spin-field coupling
std::normal_distribution<double> distribution(0.0, H);
@@ -68,10 +68,10 @@ int main(int argc, char *argv[]) {
};
// initialize the system
- system<ising_t, ising_t, graph<double>> S(G, T, Z, B);
+wolff::system<ising_t, ising_t, graph<double>> S(G, T, Z, B);
// define function that generates self-inverse rotations
- std::function <ising_t(std::mt19937&, const system<ising_t, ising_t, graph<double>>&, const graph<double>::vertex&)> gen_r = gen_ising<graph<double>>;
+ std::function <ising_t(std::mt19937&, const wolff::system<ising_t, ising_t, graph<double>>&, const graph<double>::vertex&)> gen_r = gen_ising<graph<double>>;
// initailze the measurement object
simple_measurement A(S);