mirror of
https://github.com/paboyle/Grid.git
synced 2025-11-09 08:09:31 +00:00
Compare commits
3 Commits
e7f51e5fb1
...
a3420e6fa9
| Author | SHA1 | Date | |
|---|---|---|---|
| a3420e6fa9 | |||
| 732836d9f8 | |||
| 87658f7b53 |
@@ -102,7 +102,7 @@ template<class vobj> inline void acceleratorPickCheckerboard(int cb,Lattice<vobj
|
|||||||
int linear=0;
|
int linear=0;
|
||||||
|
|
||||||
Lexicographic::CoorFromIndex(coor,ss,rdim_full);
|
Lexicographic::CoorFromIndex(coor,ss,rdim_full);
|
||||||
GRID_ASSERT(coor.size()==ndim_half);
|
assert(coor.size()==ndim_half);
|
||||||
|
|
||||||
for(int d=0;d<ndim_half;d++){
|
for(int d=0;d<ndim_half;d++){
|
||||||
if(checker_dim_mask_half[d]) linear += coor[d];
|
if(checker_dim_mask_half[d]) linear += coor[d];
|
||||||
@@ -136,7 +136,7 @@ template<class vobj> inline void acceleratorSetCheckerboard(Lattice<vobj> &full,
|
|||||||
int linear=0;
|
int linear=0;
|
||||||
|
|
||||||
Lexicographic::CoorFromIndex(coor,ss,rdim_full);
|
Lexicographic::CoorFromIndex(coor,ss,rdim_full);
|
||||||
GRID_ASSERT(coor.size()==ndim_half);
|
assert(coor.size()==ndim_half);
|
||||||
|
|
||||||
for(int d=0;d<ndim_half;d++){
|
for(int d=0;d<ndim_half;d++){
|
||||||
if(checker_dim_mask_half[d]) linear += coor[d];
|
if(checker_dim_mask_half[d]) linear += coor[d];
|
||||||
|
|||||||
@@ -52,6 +52,10 @@ class GeneralLocalStencilView {
|
|||||||
return & this->_entries_p[point+this->_npoints*osite];
|
return & this->_entries_p[point+this->_npoints*osite];
|
||||||
}
|
}
|
||||||
void ViewClose(void){};
|
void ViewClose(void){};
|
||||||
|
#ifdef GRID_LOG_VIEWS
|
||||||
|
size_t size() { return 0; };
|
||||||
|
uint64_t & operator[](size_t i) { static uint64_t v=0; return v; };
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
////////////////////////////////////////
|
////////////////////////////////////////
|
||||||
// The Stencil Class itself
|
// The Stencil Class itself
|
||||||
|
|||||||
Reference in New Issue
Block a user