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:
parent
f4033ad8cb
commit
6240e02619
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user