From 2cc44d8981e42bfe663e8e7dee8dbb7914a9482f Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Fri, 20 Dec 2019 17:37:01 -0500 Subject: fixed it --- hadamard.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'hadamard.cpp') diff --git a/hadamard.cpp b/hadamard.cpp index 5154677..2f45dcc 100644 --- a/hadamard.cpp +++ b/hadamard.cpp @@ -116,7 +116,7 @@ int main(int argc, char* argv[]) { std::cout << "Beginning simulation of " << n << ".\n"; std::cout << "Beginning " << n_tuning << " tuning tempering updates of " << M << " sweeps each.\n"; - p.tune(n_tuning, M, ε, ε2); + std::vector f = p.tune(n_tuning, M, ε, ε2); std::cout << "Finished tuning, beginning " << m << " measurement tempering updates of " << M << " sweeps each.\n"; p.run(m, M); @@ -133,6 +133,11 @@ int main(int argc, char* argv[]) { } file << std::endl; + for (double ff : f) { + file << ff << " "; + } + file << std::endl; + for (unsigned i = 0; i < B.nAccepted.size(); i++) { file << std::fixed << B.nAccepted[i] / (double)B.total_steps << " "; } -- cgit v1.2.3-54-g00ecf