From 40fd0251db9949d7e6cf1712f29eb68e53e5ed32 Mon Sep 17 00:00:00 2001 From: Christian Zimmermann Date: Wed, 3 Jul 2024 22:53:07 +0200 Subject: [PATCH] mpi: rarray: operator(single index); to be checked, generalized... --- src/opt/mpi/include/rarray.cc.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/opt/mpi/include/rarray.cc.h b/src/opt/mpi/include/rarray.cc.h index ee56d1c..dec610c 100644 --- a/src/opt/mpi/include/rarray.cc.h +++ b/src/opt/mpi/include/rarray.cc.h @@ -323,8 +323,18 @@ namespace CNORXZ template COpRoot RArray::operator()(const Sptr& i) const { - CXZ_ERROR("not implemented"); - return COpRoot(); + //CXZ_ERROR("not implemented"); + /* + if constexpr(index_is_multi::value){ + return (*this)(i->pack()); + } + else { + return (*this)(SPack(i)); + } + */ + //return COpRoot(); + // TODO: This is preliminary!!! + return coproot(*mB, i); } template