diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2019-12-13 16:18:03 -0500 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2019-12-13 16:18:03 -0500 |
commit | a75a3b44ffe9c99fc6d1c07ba4c4542b85f02790 (patch) | |
tree | 6281a4e84eb92105c3a4a8433d0aeef8271ec632 /examples/continuous_gaussian.cpp | |
parent | 4991418a416b75680737ec8f1e47b355b219728d (diff) | |
download | c++-a75a3b44ffe9c99fc6d1c07ba4c4542b85f02790.tar.gz c++-a75a3b44ffe9c99fc6d1c07ba4c4542b85f02790.tar.bz2 c++-a75a3b44ffe9c99fc6d1c07ba4c4542b85f02790.zip |
fixed some bugs due to new class in global namespace
Diffstat (limited to 'examples/continuous_gaussian.cpp')
-rw-r--r-- | examples/continuous_gaussian.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/continuous_gaussian.cpp b/examples/continuous_gaussian.cpp index eda22cb..da2dc30 100644 --- a/examples/continuous_gaussian.cpp +++ b/examples/continuous_gaussian.cpp @@ -57,11 +57,11 @@ int main(int argc, char *argv[]) { graph<> G(D, L); // initialize the system - system<dihedral_inf_t<double>, height_t<double>, graph<>> S(G, T, Z, B); + wolff::system<dihedral_inf_t<double>, height_t<double>, graph<>> S(G, T, Z, B); bool odd_run = false; - std::function <dihedral_inf_t<double>(std::mt19937&, const system<dihedral_inf_t<double>, height_t<double>, graph<>>&, const graph<>::vertex&)> gen_R_IH = [&](std::mt19937& r, const system<dihedral_inf_t<double>, height_t<double>, graph<>>& S, const graph<>::vertex& v) -> dihedral_inf_t<double> { + std::function <dihedral_inf_t<double>(std::mt19937&, const wolff::system<dihedral_inf_t<double>, height_t<double>, graph<>>&, const graph<>::vertex&)> gen_R_IH = [&](std::mt19937& r, const wolff::system<dihedral_inf_t<double>, height_t<double>, graph<>>& S, const graph<>::vertex& v) -> dihedral_inf_t<double> { dihedral_inf_t<double> rot; rot.is_reflection = true; @@ -95,7 +95,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); // run wolff N times S.run_wolff(N, gen_R_IH, A, rng); |