From 616f871735781d655e7e29dbffbadb622ff0274f Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Mon, 25 May 2015 13:44:35 +0100 Subject: [PATCH] move constants into red black --- lib/cartesian/Grid_cartesian_red_black.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/cartesian/Grid_cartesian_red_black.h b/lib/cartesian/Grid_cartesian_red_black.h index 475b47c2..ff2d3ba8 100644 --- a/lib/cartesian/Grid_cartesian_red_black.h +++ b/lib/cartesian/Grid_cartesian_red_black.h @@ -4,6 +4,13 @@ namespace Grid { + static const int CbRed =0; + static const int CbBlack=1; + static const int Even =CbRed; + static const int Odd =CbBlack; + static const int DaggerNo=0; + static const int DaggerYes=1; + // Specialise this for red black grids storing half the data like a chess board. class GridRedBlackCartesian : public GridBase { @@ -44,6 +51,9 @@ public: return source_cb; } }; + + GridRedBlackCartesian(GridBase *base) : GridRedBlackCartesian(base->_fdimensions,base->_simd_layout,base->_processors) {}; + GridRedBlackCartesian(std::vector &dimensions, std::vector &simd_layout, std::vector &processor_grid ) : GridBase(processor_grid)