From 2bd2c7f609f07fabad237d74b3b78d56a35fb498 Mon Sep 17 00:00:00 2001 From: bangerth Date: Mon, 7 Jan 2013 15:04:06 +0000 Subject: [PATCH] Avoid one more call to deprecated function. git-svn-id: https://svn.dealii.org/trunk@27962 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/numerics/matrix_tools.cc | 39 +++++-------------------- 1 file changed, 8 insertions(+), 31 deletions(-) diff --git a/deal.II/source/numerics/matrix_tools.cc b/deal.II/source/numerics/matrix_tools.cc index 0e5bb4d784..51dd6b24d8 100644 --- a/deal.II/source/numerics/matrix_tools.cc +++ b/deal.II/source/numerics/matrix_tools.cc @@ -2203,38 +2203,15 @@ namespace MatrixTools // to zero except for the diagonal // entry. Note that the diagonal // entry is always the first one - // for square matrices, i.e. - // we shall not set - // matrix.global_entry( - // sparsity_rowstart[dof.first]) - // of the diagonal block + // in a row for square matrices for (unsigned int block_col=0; block_col::iterator + p = (block_col == block_index.first ? + matrix.block(block_index.first,block_col).begin(block_index.second) + 1 : + matrix.block(block_index.first,block_col).begin(block_index.second)); + p != matrix.block(block_index.first,block_col).end(block_index.second); + ++p) + p->value() = 0; // set right hand side to // wanted value: if main diagonal -- 2.39.5