Skip to content
Snippets Groups Projects
Commit b72d8940 authored by Oliver Sander's avatar Oliver Sander Committed by sander
Browse files

Allow different global index types (not just objects) for row and column numbers

[[Imported from SVN: r9763]]
parent d0bd4968
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment