1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-04 19:25:56 +01:00

Assertion should never hit, but did due to a bug

This commit is contained in:
Peter Boyle 2015-05-10 15:24:37 +01:00
parent 6bb17502f9
commit 58d32a4d0e

View File

@ -83,6 +83,7 @@ template<class vobj> inline void sliceSum(const Lattice<vobj> &Data,std::vector<
typedef typename vobj::scalar_object sobj;
GridBase *grid = Data._grid;
assert(grid!=NULL);
const int Nd = grid->_ndimension;
const int Nsimd = grid->Nsimd();