From 86939dbf1a750034d6bd79fc605d3a9454ddfa21 Mon Sep 17 00:00:00 2001 From: Michael Marshall <43034299+mmphys@users.noreply.github.com> Date: Fri, 4 Oct 2019 13:59:59 +0100 Subject: [PATCH] Removed unnecessary function (for getting a parameter) --- Hadrons/Distil.hpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Hadrons/Distil.hpp b/Hadrons/Distil.hpp index 9a53760a..83727df3 100644 --- a/Hadrons/Distil.hpp +++ b/Hadrons/Distil.hpp @@ -230,9 +230,6 @@ struct DistilParameters: Serializable { } return i; } - - int getTI( const Environment & env, bool bCalledFromSetup ) const { - return ParameterDefault( TI, env.getDim(Tdir), bCalledFromSetup ); } }; #define DISTIL_PARAMETERS_DEFINE( inSetup ) \ @@ -240,9 +237,9 @@ const int Nt{env().getDim(Tdir)}; \ const int nvec{par().nvec}; \ const int nnoise{par().Distil.nnoise}; \ const int tsrc{par().Distil.tsrc}; \ -const int TI{par().Distil.getTI(env(), inSetup)}; \ +const int TI{Hadrons::MDistil::DistilParameters::ParameterDefault(par().Distil.TI, Nt, inSetup)}; \ const int LI{Hadrons::MDistil::DistilParameters::ParameterDefault(par().Distil.LI, nvec, inSetup)}; \ -const int SI{Hadrons::MDistil::DistilParameters::ParameterDefault(par().Distil.SI, Ns, inSetup)}; \ +const int SI{Hadrons::MDistil::DistilParameters::ParameterDefault(par().Distil.SI, Ns, inSetup)}; \ const bool full_tdil{ TI == Nt }; \ const bool exact_distillation{ full_tdil && LI == nvec }; \ const int Nt_inv{ full_tdil ? 1 : TI }