Return a constant reference to the mask for ParallelISTLInformation::updateOwnerMask

Thus we can actually access the mask in external code. This is for
example needed when calculating averages in RateConverter of opm-autodiff.
This commit is contained in:
Markus Blatt 2015-11-02 14:34:18 +01:00
parent bdd5104bc5
commit 8d253606fc

View File

@ -160,7 +160,7 @@ public:
communicator.free();
}
template<class T>
void updateOwnerMask(const T& container) const
const std::vector<double>& updateOwnerMask(const T& container) const
{
if( ! indexSet_ )
{
@ -177,6 +177,7 @@ public:
}
}
}
return ownerMask_;
}
/// \brief Compute one or more global reductions.
///