diff --git a/ttcr/Grid2D.h b/ttcr/Grid2D.h index 89205d8f..fd8abb4a 100644 --- a/ttcr/Grid2D.h +++ b/ttcr/Grid2D.h @@ -43,8 +43,8 @@ namespace ttcr { class Grid2D { public: Grid2D(const size_t ncells, const bool ttrp, const size_t nt=1, const bool up=1) : - nThreads(nt), usePool(up), tt_from_rp(ttrp), - neighbors(std::vector>(ncells)) + nThreads(nt), tt_from_rp(ttrp), neighbors(std::vector>(ncells)), + usePool(up) { if ( nThreads > 1 && usePool ) { pool.resize(static_cast(nThreads));