Compare commits

...
3 Commits
Author SHA1 Message Date
paboyle a3420e6fa9 Update for grid view logging 2025-08-14 21:29:20 +00:00
paboyle 732836d9f8 Missed one 2025-08-14 20:25:54 +00:00
paboyle 87658f7b53 ASSERT tripped in Shuhei's branch 2025-08-14 20:08:54 +00:00
2 changed files with 6 additions and 2 deletions
+2 -2
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];
+4
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