From c2250fa124e90a2fc255e3ff043ab3935364a8a7 Mon Sep 17 00:00:00 2001 From: Nils Asmussen Date: Fri, 29 Mar 2019 16:36:56 +0000 Subject: [PATCH] MFermion::GaugeProp fix for 4d fields --- Hadrons/Modules/MFermion/GaugeProp.hpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Hadrons/Modules/MFermion/GaugeProp.hpp b/Hadrons/Modules/MFermion/GaugeProp.hpp index f11113b4..49b4bd5a 100644 --- a/Hadrons/Modules/MFermion/GaugeProp.hpp +++ b/Hadrons/Modules/MFermion/GaugeProp.hpp @@ -111,13 +111,18 @@ void TGaugeProp::setup(void) { Ls_ = env().getObjectLs(par().solver); envCreateLat(PropagatorField, getName()); - envTmpLat(FermionField, "source", Ls_); - envTmpLat(FermionField, "sol", Ls_); envTmpLat(FermionField, "tmp"); if (Ls_ > 1) { + envTmpLat(FermionField, "source", Ls_); + envTmpLat(FermionField, "sol", Ls_); envCreateLat(PropagatorField, getName() + "_5d", Ls_); } + else + { + envTmpLat(FermionField, "source"); + envTmpLat(FermionField, "sol"); + } } // execution ///////////////////////////////////////////////////////////////////