1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

QedFVol: Fix segmentation fault when multiple propagator modules are used.

This commit is contained in:
James Harrison 2018-02-05 11:46:33 +00:00
parent f37ed4958b
commit c5b23c367e

View File

@ -240,6 +240,14 @@ void TChargedProp::makeCaches(void)
phase_.push_back(&phmu);
}
}
else
{
phase_.clear();
for (unsigned int mu = 0; mu < env().getNd(); ++mu)
{
phase_.push_back(env().getObject<ScalarField>(phaseName_[mu]));
}
}
}
void TChargedProp::momD1(ScalarField &s, FFT &fft)