From e619650902a834659019c2923855a6fcea478870 Mon Sep 17 00:00:00 2001 From: Christian Zimmermann Date: Mon, 2 Dec 2024 12:44:37 -0800 Subject: [PATCH] mpi: rrange: fix operator() --- src/opt/mpi/include/rrange.cc.h | 5 +++++ 1 file changed, 5 insertions(+) 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;