1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-11 14:40:46 +01:00

small stuff

This commit is contained in:
ferben 2019-11-13 16:34:09 +00:00
parent 500ef17143
commit 25d2521d77
2 changed files with 4 additions and 3 deletions

View File

@ -180,7 +180,7 @@ void TDistilVectors<FImpl>::execute(void)
{ {
for (int ds = 0; ds < dp.SI; ds++) for (int ds = 0; ds < dp.SI; ds++)
{ {
vecindex = inoise + dp.nnoise * dk + dp.nnoise * dp.LI * ds + dp.nnoise *dp.LI * dp.SI*dt; vecindex = inoise + dp.nnoise * (dk + dp.LI * (ds + dp.SI * dt));
rho[vecindex] = 0; rho[vecindex] = 0;
for (int it = dt; it < Nt; it += dp.TI) for (int it = dt; it < Nt; it += dp.TI)
{ {
@ -218,7 +218,7 @@ void TDistilVectors<FImpl>::execute(void)
{ {
for (int ds = 0; ds < dp.SI; ds++) for (int ds = 0; ds < dp.SI; ds++)
{ {
vecindex = inoise + dp.nnoise * dk + dp.nnoise * dp.LI * ds + dp.nnoise *dp.LI *dp. SI*dt; vecindex = inoise + dp.nnoise * (dk + dp.LI * (ds + dp.SI * dt));
phi[vecindex] = 0; phi[vecindex] = 0;
for (int t = Ntfirst; t < Ntfirst + Ntlocal; t++) for (int t = Ntfirst; t < Ntfirst + Ntlocal; t++)
{ {

View File

@ -92,7 +92,8 @@ template <typename FImpl>
void TNoises<FImpl>::setup(void) void TNoises<FImpl>::setup(void)
{ {
const DistilParameters &dp{envGet(DistilParameters, par().DistilParams)}; const DistilParameters &dp{envGet(DistilParameters, par().DistilParams)};
const int Nt{env().getDim(Tdir)}; const int Nt{env().getDim(Tdir)};
std::cout << dp.nnoise << dp.nvec << Nt << Ns << std::endl;
envCreate(NoiseTensor, getName(), 1, dp.nnoise, Nt, dp.nvec, Ns); envCreate(NoiseTensor, getName(), 1, dp.nnoise, Nt, dp.nvec, Ns);
} }