1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-09 21:50:45 +01:00

moved hard-coded parameters in DistilVectors to module input

This commit is contained in:
ferben 2019-01-23 11:32:53 +00:00
parent 4cc2ebc9e4
commit d7908c33de

View File

@ -27,7 +27,16 @@ public:
std::string, noise, std::string, noise,
std::string, perambulator, std::string, perambulator,
std::string, eigenPack, std::string, eigenPack,
bool, multiFile); bool, multiFile,
int, tsrc,
int, nnoise,
int, LI,
int, SI,
int, TI,
int, nvec,
int, Ns,
int, Nt,
int, Nt_inv);
}; };
template <typename FImpl> template <typename FImpl>
@ -136,15 +145,16 @@ void TDistilVectors<FImpl>::execute(void)
int Ntlocal = grid4d->LocalDimensions()[3]; int Ntlocal = grid4d->LocalDimensions()[3];
int Ntfirst = grid4d->LocalStarts()[3]; int Ntfirst = grid4d->LocalStarts()[3];
int tsrc=0; int tsrc=par().tsrc;
int nnoise=1; int nnoise=par().nnoise;
int LI=6; int LI=par().LI;
int Ns=4; int Ns=par().Ns;
int Nt_inv=1; int Nt_inv=par().Nt_inv;
int Nt=64; int Nt=par().Nt;
int TI=64; int TI=par().TI;
int nvec=6; int nvec=par().nvec;
bool full_tdil=true;
bool full_tdil=(TI==Nt);
int vecindex; int vecindex;
for (int inoise = 0; inoise < nnoise; inoise++) { for (int inoise = 0; inoise < nnoise; inoise++) {