From 67128b02f415ada9c29791ad2cb9929f4dd9ca6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carsten=20Gr=C3=A4ser?= <graeser@dune-project.org> Date: Mon, 7 Nov 2016 17:56:13 +0100 Subject: [PATCH] [bugfix] Allow different multi-index type for row and column --- dune/fufem/assemblers/istlbackend.hh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dune/fufem/assemblers/istlbackend.hh b/dune/fufem/assemblers/istlbackend.hh index 1568861b..94e6ea87 100644 --- a/dune/fufem/assemblers/istlbackend.hh +++ b/dune/fufem/assemblers/istlbackend.hh @@ -221,17 +221,17 @@ public: return {*matrix_}; } - template<class MultiIndex> - const Entry& operator()(const MultiIndex& row, const MultiIndex& col) const + template<class RowMultiIndex, class ColMultiIndex> + const Entry& operator()(const RowMultiIndex& row, const ColMultiIndex& col) const { - MatrixMultiIndexResolver<const Entry&, MultiIndex, MultiIndex> i(row, col); + MatrixMultiIndexResolver<const Entry&, RowMultiIndex, ColMultiIndex> i(row, col); return i(*matrix_); } - template<class MultiIndex> - Entry& operator()(const MultiIndex& row, const MultiIndex& col) + template<class RowMultiIndex, class ColMultiIndex> + Entry& operator()(const RowMultiIndex& row, const ColMultiIndex& col) { - MatrixMultiIndexResolver<Entry&, MultiIndex, MultiIndex> i(row, col); + MatrixMultiIndexResolver<Entry&, RowMultiIndex, ColMultiIndex> i(row, col); return i(*matrix_); } -- GitLab