1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-11-05 06:19:31 +00:00

Compare commits

...

3 Commits

Author SHA1 Message Date
a3420e6fa9 Update for grid view logging 2025-08-14 21:29:20 +00:00
732836d9f8 Missed one 2025-08-14 20:25:54 +00:00
87658f7b53 ASSERT tripped in Shuhei's branch 2025-08-14 20:08:54 +00:00
2 changed files with 6 additions and 2 deletions

View File

@@ -102,7 +102,7 @@ template<class vobj> inline void acceleratorPickCheckerboard(int cb,Lattice<vobj
int linear=0;
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++){
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;
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++){
if(checker_dim_mask_half[d]) linear += coor[d];

View File

@@ -52,6 +52,10 @@ class GeneralLocalStencilView {
return & this->_entries_p[point+this->_npoints*osite];
}
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