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

added assertion to avoid potential infinite loop

This commit is contained in:
ferben 2020-04-27 18:50:53 +01:00
parent f4033ad8cb
commit 6240e02619

View File

@ -553,6 +553,7 @@ inline void BaryonUtils<FImpl>::BaryonSiteHelper<maxMask>::function(const unsign
const int parity,
robj &result)
{
assert(mask <= maxMask);
if (mask == maxMask)
{
baryon_site_template<maxMask,decltype(D1),decltype(result)>(D1, D2, D3, GammaA_left, GammaB_left, GammaA_right, GammaB_right, parity, result);