From c760f0a4c3910e29cd4aeff1bff588d20d25fa19 Mon Sep 17 00:00:00 2001 From: Antonin Portelli Date: Fri, 22 Jun 2018 16:12:46 +0200 Subject: [PATCH] Hadrons: remove make_5D/4D functions and FreeProp fix --- extras/Hadrons/Modules/MFermion/FreeProp.hpp | 6 ++---- extras/Hadrons/Modules/MFermion/GaugeProp.hpp | 21 ------------------- 2 files changed, 2 insertions(+), 25 deletions(-) diff --git a/extras/Hadrons/Modules/MFermion/FreeProp.hpp b/extras/Hadrons/Modules/MFermion/FreeProp.hpp index 0786eb2b..4e448188 100644 --- a/extras/Hadrons/Modules/MFermion/FreeProp.hpp +++ b/extras/Hadrons/Modules/MFermion/FreeProp.hpp @@ -34,8 +34,6 @@ See the full license in the file "LICENSE" in the top level distribution directo #include #include -#include - BEGIN_HADRONS_NAMESPACE /****************************************************************************** @@ -152,7 +150,7 @@ void TFreeProp::execute(void) else { PropToFerm(tmp, fullSrc, s, c); - make_5D(tmp, source, Ls_); + mat.ImportPhysicalFermionSource(tmp, source); } } // source conversion for 5D sources @@ -176,7 +174,7 @@ void TFreeProp::execute(void) if (Ls_ > 1) { PropagatorField &p4d = envGet(PropagatorField, getName()); - make_4D(sol, tmp, Ls_); + mat.ExportPhysicalFermionSolution(sol, tmp); FermToProp(p4d, tmp, s, c); } } diff --git a/extras/Hadrons/Modules/MFermion/GaugeProp.hpp b/extras/Hadrons/Modules/MFermion/GaugeProp.hpp index 8aafb834..ebf8d56f 100644 --- a/extras/Hadrons/Modules/MFermion/GaugeProp.hpp +++ b/extras/Hadrons/Modules/MFermion/GaugeProp.hpp @@ -39,27 +39,6 @@ See the full license in the file "LICENSE" in the top level distribution directo BEGIN_HADRONS_NAMESPACE -/****************************************************************************** - * 5D -> 4D and 4D -> 5D conversions. * - ******************************************************************************/ -template // Note that 5D object is modified. -inline void make_4D(Lattice &in_5d, Lattice &out_4d, int Ls) -{ - axpby_ssp_pminus(in_5d, 0., in_5d, 1., in_5d, 0, 0); - axpby_ssp_pplus(in_5d, 1., in_5d, 1., in_5d, 0, Ls-1); - ExtractSlice(out_4d, in_5d, 0, 0); -} - -template -inline void make_5D(Lattice &in_4d, Lattice &out_5d, int Ls) -{ - out_5d = zero; - InsertSlice(in_4d, out_5d, 0, 0); - InsertSlice(in_4d, out_5d, Ls-1, 0); - axpby_ssp_pplus(out_5d, 0., out_5d, 1., out_5d, 0, 0); - axpby_ssp_pminus(out_5d, 0., out_5d, 1., out_5d, Ls-1, Ls-1); -} - /****************************************************************************** * GaugeProp * ******************************************************************************/