From 58d32a4d0e85df807f254fb795865ef6cc64f869 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Sun, 10 May 2015 15:24:37 +0100 Subject: [PATCH] Assertion should never hit, but did due to a bug --- lib/lattice/Grid_lattice_reduction.h | 1 + 1 file changed, 1 insertion(+) 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();