#include "gromacs/utility/basedefinitions.h"
#include "gromacs/utility/exceptions.h"
#include "gromacs/utility/fatalerror.h"
+#include "gromacs/utility/gmxassert.h"
#include "gromacs/utility/smalloc.h"
#include "pme_grid.h"
nthread = pme->nthread;
assert(nthread > 0);
+ GMX_ASSERT(grids != nullptr || !bSpread, "If there's no grid, we cannot be spreading");
#ifdef PME_TIME_THREADS
c1 = omp_cyc_start();