mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 07:55:35 +00:00
Hadrons: scalar SU(N) 2-pt guard against negative momenta components
This commit is contained in:
parent
2e69e03f6f
commit
3a40e4fc69
@ -141,6 +141,10 @@ void TTwoPoint<SImpl>::setup(void)
|
|||||||
HADRONS_ERROR(Size, "momentum number of components different from "
|
HADRONS_ERROR(Size, "momentum number of components different from "
|
||||||
+ std::to_string(nd-1));
|
+ std::to_string(nd-1));
|
||||||
}
|
}
|
||||||
|
for (unsigned int j = 0; j < nd - 1; ++j)
|
||||||
|
{
|
||||||
|
mom_[i][j] = (mom_[i][j] + env().getDim(j)) % env().getDim(j);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
envTmpLat(ComplexField, "ftBuf");
|
envTmpLat(ComplexField, "ftBuf");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user