1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00: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 4a8fd55f52
commit 961fbb2718

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();