From b72d89402b11ae71e4cda2f5bd722f9454010e6b Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Mon, 26 May 2014 05:15:44 +0000 Subject: [PATCH] Allow different global index types (not just objects) for row and column numbers [[Imported from SVN: r9763]] --- dune/gfe/parallel/matrixcommunicator.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dune/gfe/parallel/matrixcommunicator.hh b/dune/gfe/parallel/matrixcommunicator.hh index fcc6318b..66b15256 100644 --- a/dune/gfe/parallel/matrixcommunicator.hh +++ b/dune/gfe/parallel/matrixcommunicator.hh @@ -9,7 +9,7 @@ #include <dune/gfe/parallel/mpifunctions.hh> -template<typename GUIndex, typename MatrixType> +template<typename GUIndex, typename MatrixType, typename ColGUIndex=GUIndex> class MatrixCommunicator { struct TransferMatrixTuple { @@ -51,7 +51,7 @@ public: root_rank(root) {} - MatrixCommunicator(const GUIndex& rowIndex, const GUIndex& colIndex, const int& root) + MatrixCommunicator(const GUIndex& rowIndex, const ColGUIndex& colIndex, const int& root) : guIndex1_(rowIndex), guIndex2_(colIndex), root_rank(root) @@ -109,7 +109,7 @@ public: private: const GUIndex& guIndex1_; - const GUIndex& guIndex2_; + const ColGUIndex& guIndex2_; int root_rank; std::vector<TransferMatrixTuple> globalMatrixEntries; -- GitLab