From 2435517735283c5e49e844ff848b3e1bdf24857d Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Fri, 20 Dec 2019 00:10:55 -0500 Subject: trying to remove anamolous acceptance rates from edges --- hadamard_pt.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hadamard_pt.hpp b/hadamard_pt.hpp index 812186d..74c3b73 100644 --- a/hadamard_pt.hpp +++ b/hadamard_pt.hpp @@ -73,9 +73,9 @@ public: std::vector nu(Ms.size(), 0); std::vector nd(Ms.size(), 0); - colors.front() = down; - colors.back() = up; for (unsigned i = 0; i < n; i++) { + colors.front() = down; + colors.back() = up; #pragma omp parallel for for (unsigned j = 0; j < Ms.size(); j++) { Ms[j].tune(m, ε); @@ -84,8 +84,6 @@ public: for (unsigned j = 0; j < Ms.size() - 1; j++) { if (this->step(j, j + 1, true)) { std::swap(colors[j], colors[j + 1]); - colors.front() = down; - colors.back() = up; if (colors[j] == up) { nu[j]++; @@ -97,6 +95,7 @@ public: } else if (colors[j + 1] == down) { nd[j + 1]++; } + } } } -- cgit v1.2.3-70-g09d2