1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-09 23:45:36 +00:00

Support needed for accelerator resident set/pick Checkerboard

This commit is contained in:
Peter Boyle 2024-08-27 11:19:00 -04:00
parent d8be95a2a3
commit 6cfb90e99f

View File

@ -57,9 +57,10 @@ class GridRedBlackCartesian : public GridBase
{ {
public: public:
// Coordinate _checker_dim_mask; // Coordinate _checker_dim_mask;
int _checker_dim; // int _checker_dim;
std::vector<int> _checker_board; std::vector<int> _checker_board;
virtual int isCheckerBoarded(void) const { return 1; };
virtual int CheckerBoarded(int dim){ virtual int CheckerBoarded(int dim){
if( dim==_checker_dim) return 1; if( dim==_checker_dim) return 1;
else return 0; else return 0;
@ -147,7 +148,7 @@ public:
{ {
Init(base->_fdimensions,base->_simd_layout,base->_processors,checker_dim_mask,checker_dim) ; Init(base->_fdimensions,base->_simd_layout,base->_processors,checker_dim_mask,checker_dim) ;
} }
virtual ~GridRedBlackCartesian() = default; virtual ~GridRedBlackCartesian() = default;
void Init(const Coordinate &dimensions, void Init(const Coordinate &dimensions,