1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

Update oSites

This commit is contained in:
paboyle 2018-03-08 21:00:25 +00:00
parent c159c70c84
commit 4d60b92b7f
2 changed files with 2 additions and 1 deletions

View File

@ -67,6 +67,7 @@ protected:
uint64_t _odata_size;
public:
accelerator_inline LatticeAccelerator() : checkerboard(0), _odata(nullptr), _odata_size(0), _grid(nullptr) { };
accelerator_inline uint64_t oSites(void) const { return _odata_size; };
accelerator_inline int Checkerboard(void) const { return checkerboard; };
accelerator_inline int &Checkerboard(void) { return this->checkerboard; }; // can assign checkerboard on a container, not a view
accelerator_inline void Conformable(GridBase * &grid) const

View File

@ -134,7 +134,7 @@
COMPLEX_SIGNS(isigns);
MASK_REGS;
int nmax=U.Grid()->oSites();
int nmax=U.oSites();
for(int site=0;site<Ns;site++) {
#ifndef EXTERIOR
int sU =lo.Reorder(ssU);