From: Daniel Arndt Date: Sat, 25 Aug 2018 19:57:21 +0000 (+0200) Subject: Use a VectorType instead of unsigned int in LaplaceOperator::local_diagonal_cell X-Git-Tag: v9.1.0-rc1~776^2~6 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=903c98253ee48d1845827c18daff0ff4bb4b4ba3;p=dealii.git Use a VectorType instead of unsigned int in LaplaceOperator::local_diagonal_cell --- 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;