diff --git a/lib/lattice/Lattice_base.h b/lib/lattice/Lattice_base.h index 2cee54f3..cfa556ff 100644 --- a/lib/lattice/Lattice_base.h +++ b/lib/lattice/Lattice_base.h @@ -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 diff --git a/lib/qcd/action/fermion/WilsonKernelsAsmBody.h b/lib/qcd/action/fermion/WilsonKernelsAsmBody.h index bdfe2b96..0cecf42a 100644 --- a/lib/qcd/action/fermion/WilsonKernelsAsmBody.h +++ b/lib/qcd/action/fermion/WilsonKernelsAsmBody.h @@ -134,7 +134,7 @@ COMPLEX_SIGNS(isigns); MASK_REGS; - int nmax=U.Grid()->oSites(); + int nmax=U.oSites(); for(int site=0;site