From 903c98253ee48d1845827c18daff0ff4bb4b4ba3 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sat, 25 Aug 2018 21:57:21 +0200 Subject: [PATCH] Use a VectorType instead of unsigned int in LaplaceOperator::local_diagonal_cell --- include/deal.II/matrix_free/operators.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/deal.II/matrix_free/operators.h b/include/deal.II/matrix_free/operators.h index 72fc4121d3..80a680208e 100644 --- a/include/deal.II/matrix_free/operators.h +++ b/include/deal.II/matrix_free/operators.h @@ -890,7 +890,7 @@ namespace MatrixFreeOperators local_diagonal_cell( const MatrixFree &data, VectorType & dst, - const unsigned int &, + const VectorType &, const std::pair &cell_range) const; /** @@ -1894,7 +1894,6 @@ namespace MatrixFreeOperators using Number = typename Base::value_type; Assert((Base::data.get() != nullptr), ExcNotInitialized()); - unsigned int dummy = 0; this->inverse_diagonal_entries.reset(new DiagonalMatrix()); this->diagonal_entries.reset(new DiagonalMatrix()); VectorType &inverse_diagonal_vector = @@ -1906,7 +1905,7 @@ namespace MatrixFreeOperators this->data->cell_loop(&LaplaceOperator::local_diagonal_cell, this, diagonal_vector, - dummy); + /*unused*/ diagonal_vector); this->set_constrained_entries_to_one(diagonal_vector); inverse_diagonal_vector = diagonal_vector; @@ -2032,7 +2031,7 @@ namespace MatrixFreeOperators local_diagonal_cell( const MatrixFree::value_type> &data, VectorType & dst, - const unsigned int &, + const VectorType &, const std::pair &cell_range) const { using Number = typename Base::value_type; -- 2.39.5