diff --git a/lib/cshift/Cshift_common.h b/lib/cshift/Cshift_common.h index b2f87315..c9faf365 100644 --- a/lib/cshift/Cshift_common.h +++ b/lib/cshift/Cshift_common.h @@ -150,9 +150,9 @@ template void Scatter_plane_simple (Lattice &rhs,commVector_slice_stride[dimension]; - int bo =n*rhs._grid->_slice_block[dimension]; - table[ent++] = std::pair(so+o+b,bo); + int o =n*rhs._grid->_slice_stride[dimension]; + int bo =n*rhs._grid->_slice_block[dimension]; + table[ent++] = std::pair(so+o+b,bo+b); } }