Fix bug with scratch-grids in sub-domains
chuckyount opened this issue · comments
Chuck Yount commented
make clean ; make -j real_bytes=8 fold=z=4 stencil=awp_elastic YK_CXXOPT='-O0' EXTRA_MACROS='CHECK' OMPFLAGS='-qopenmp-stubs'
bin/yask.sh -stencil awp_elastic -arch snb -v
...
yask_kernel.awp_elastic.snb.exe: lib/context.cpp:1036: void yask::StencilContext::update_scratch_grids(int, const yask::Indices &): Assertion `imod_flr(lofs, gp->_get_vec_lens(posn)) == 0' failed.
This happens because blocks in sub-domains are not aligned, but they must be in current impl.