summaryrefslogtreecommitdiff
path: root/hadamard_pt.hpp
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2019-12-12 09:02:51 -0500
committerJaron Kent-Dobias <jaron@kent-dobias.com>2019-12-12 09:02:51 -0500
commit22f0e9aee93c724209ee0c8b0d079b0d191e767c (patch)
tree6c0812ada31c8a9b801004014e53b7c6300eec8c /hadamard_pt.hpp
parent17d0c94edd1a4a60816bc22966fd7e462155172e (diff)
downloadcode-22f0e9aee93c724209ee0c8b0d079b0d191e767c.tar.gz
code-22f0e9aee93c724209ee0c8b0d079b0d191e767c.tar.bz2
code-22f0e9aee93c724209ee0c8b0d079b0d191e767c.zip
added a stage for burnout steps to address superheating
Diffstat (limited to 'hadamard_pt.hpp')
-rw-r--r--hadamard_pt.hpp8
1 files changed, 5 insertions, 3 deletions
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);
+ }
}
}
};