1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-18 07:47:06 +01:00

QedFVol: Fix bugs in StochEm.cc and ChargedProp.cc (still only works without MPI).

This commit is contained in:
James Harrison
2018-01-26 21:25:20 +00:00
parent 3db7a5387b
commit cdf550845f
5 changed files with 51 additions and 45 deletions

View File

@ -57,10 +57,8 @@ std::vector<std::string> TStochEm::getOutput(void)
// setup ///////////////////////////////////////////////////////////////////////
void TStochEm::setup(void)
{
if (!env().hasCreatedObject("_" + getName() + "_weight"))
{
envCacheLat(EmComp, "_" + getName() + "_weight");
}
weightDone_ = env().hasCreatedObject("_" + getName() + "_weight");
envCacheLat(EmComp, "_" + getName() + "_weight");
envCreateLat(EmField, getName());
}
@ -73,7 +71,7 @@ void TStochEm::execute(void)
auto &a = envGet(EmField, getName());
auto &w = envGet(EmComp, "_" + getName() + "_weight");
if (!env().hasCreatedObject("_" + getName() + "_weight"))
if (!weightDone_)
{
LOG(Message) << "Caching stochastic EM potential weight (gauge: "
<< par().gauge << ", zero-mode scheme: "