diff --git a/src/opt/mpi/include/rrange.cc.h b/src/opt/mpi/include/rrange.cc.h index c5a27a4..3f3b3ea 100644 --- a/src/opt/mpi/include/rrange.cc.h +++ b/src/opt/mpi/include/rrange.cc.h @@ -247,6 +247,7 @@ namespace CNORXZ template String RIndex::stringMeta() const { + CXZ_ASSERT(isSynchronous(), "index not in synchronous position"); const SizeT r = mK->lex()*mRankFormat; String o; if(r == getRankNumber()){ @@ -259,6 +260,7 @@ namespace CNORXZ template typename RIndex::MetaType RIndex::meta() const { + CXZ_ASSERT(isSynchronous(), "index not in synchronous position"); MetaType o; if constexpr(Typemap::exists){ const SizeT r = mK->lex()*mRankFormat; @@ -405,6 +407,9 @@ namespace CNORXZ } } } + else { + mLex = mK->lex() * mI->lmax().val() + mI->lex(); + } //IB::mPos = mK->pos() * mStepRatio + mI->pos(); IB::mPos = mK->pos() * mI->pmax().val() + mI->pos(); return *this;