diff --git a/lib/lattice/Grid_lattice_reduction.h b/lib/lattice/Grid_lattice_reduction.h index 6679f29b..679effb0 100644 --- a/lib/lattice/Grid_lattice_reduction.h +++ b/lib/lattice/Grid_lattice_reduction.h @@ -83,6 +83,7 @@ template inline void sliceSum(const Lattice &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();