From 77629743546f3bb05ebce3d7dd1533358301c23a Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Wed, 8 Jun 2016 11:02:13 +0200 Subject: [PATCH] Make ParallelIstlInformation::ownerMask_ accessible. This is needed in opm-simulator to calculate the parallel euclidian product of the saturations. --- opm/core/linalg/ParallelIstlInformation.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/opm/core/linalg/ParallelIstlInformation.hpp b/opm/core/linalg/ParallelIstlInformation.hpp index 49504dff4..9ffbf60ce 100644 --- a/opm/core/linalg/ParallelIstlInformation.hpp +++ b/opm/core/linalg/ParallelIstlInformation.hpp @@ -179,6 +179,17 @@ public: } return ownerMask_; } + + /// \brief Get the owner Mask. + /// + /// \return A vector with entries 0, and 1. 0 marks an index that we cannot + /// compute correct results for. 1 marks an index that this process + /// is responsible for and computes correct results in parallel. + const std::vector& getOwnerMask() const + { + return ownerMask_; + } + /// \brief Compute one or more global reductions. /// /// This function can either be used with a container, an operator, and an initial value