diff --git a/include/atrip/Atrip.hpp b/include/atrip/Atrip.hpp index fd20c01..a0cad96 100644 --- a/include/atrip/Atrip.hpp +++ b/include/atrip/Atrip.hpp @@ -25,7 +25,8 @@ namespace atrip { , *Vppph = nullptr ; int maxIterations = 0, iterationMod = -1; - bool barrier = true; + bool barrier = false; + bool chrono = false; Input& with_epsilon_i(CTF::Tensor * t) { ei = t; return *this; } Input& with_epsilon_a(CTF::Tensor * t) { ea = t; return *this; } Input& with_Tai(CTF::Tensor * t) { Tph = t; return *this; } @@ -36,6 +37,7 @@ namespace atrip { Input& with_maxIterations(int i) { maxIterations = i; return *this; } Input& with_iterationMod(int i) { iterationMod = i; return *this; } Input& with_barrier(bool i) { barrier = i; return *this; } + Input& with_chrono(bool i) { chrono = i; return *this; } }; struct Output { diff --git a/src/atrip/Atrip.cxx b/src/atrip/Atrip.cxx index 905a513..d019d98 100644 --- a/src/atrip/Atrip.cxx +++ b/src/atrip/Atrip.cxx @@ -287,6 +287,7 @@ Atrip::Output Atrip::run(Atrip::Input const& in) { << " ===========================\n"; // PRINT TIMINGS + if (in.chrono) for (auto const& pair: chrono) LOG(1, " ") << pair.first << " :: " << pair.second.count() @@ -525,6 +526,7 @@ Atrip::Output Atrip::run(Atrip::Input const& in) { << globalEnergy << std::endl; // PRINT TIMINGS {{{1 + if (in.chrono) for (auto const& pair: chrono) LOG(0,"atrip:chrono") << pair.first << " " << pair.second.count() << std::endl;