From 22f0e9aee93c724209ee0c8b0d079b0d191e767c Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Thu, 12 Dec 2019 09:02:51 -0500 Subject: added a stage for burnout steps to address superheating --- hadamard_pt.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'hadamard_pt.hpp') diff --git a/hadamard_pt.hpp b/hadamard_pt.hpp index dad635f..bddd8b7 100644 --- a/hadamard_pt.hpp +++ b/hadamard_pt.hpp @@ -69,14 +69,16 @@ public: } } - void run(unsigned n, unsigned m) { + void run(unsigned n, unsigned m, bool dry = false) { for (unsigned i = 0; i < n; i++) { #pragma omp parallel for for (unsigned j = 0; j < Ms.size(); j++) { - Ms[j].run(m); + Ms[j].run(m, dry); } this->sweep(); - B.after_sweep(this->Ms); + if (!dry) { + B.after_sweep(this->Ms); + } } } }; -- cgit v1.2.3-70-g09d2