From bd27940f78a731d164eb54fb5f63360109074c6c Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Tue, 28 Aug 2018 11:32:23 +0100 Subject: [PATCH] Reorder the loop --- extras/Hadrons/Modules/MSolver/A2AVectors.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extras/Hadrons/Modules/MSolver/A2AVectors.hpp b/extras/Hadrons/Modules/MSolver/A2AVectors.hpp index 9481f268..08b44ec4 100644 --- a/extras/Hadrons/Modules/MSolver/A2AVectors.hpp +++ b/extras/Hadrons/Modules/MSolver/A2AVectors.hpp @@ -206,9 +206,9 @@ void TA2AVectors::execute(void) envGetTmp(FermionField, tmp2); int N_count = 0; + for (unsigned int T = 0; T < Nsrc; T++) for (unsigned int s = 0; s < Ns; ++s) - for (unsigned int c = 0; c < Nc; ++c) - for (unsigned int T = 0; T < Nsrc; T++) + for (unsigned int c = 0; c < Nc; ++c) { auto &prop_src = envGet(PropagatorField, sources[T]); LOG(Message) << "A2A src for s = " << s << " , c = " << c << ", T = " << T << std::endl;