From: Wolfgang Bangerth Date: Tue, 15 Jan 2013 03:00:39 +0000 (+0000) Subject: Avoid a silly use of SparseMatrix::global_entry. X-Git-Tag: v8.0.0~1564 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b441ddc9143b32d5e073b03f4481f413ce26e2bd;p=dealii.git Avoid a silly use of SparseMatrix::global_entry. git-svn-id: https://svn.dealii.org/trunk@28058 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/lac/sparse_decomposition.templates.h b/deal.II/include/deal.II/lac/sparse_decomposition.templates.h index b196265526..38059028e6 100644 --- a/deal.II/include/deal.II/lac/sparse_decomposition.templates.h +++ b/deal.II/include/deal.II/lac/sparse_decomposition.templates.h @@ -198,10 +198,9 @@ SparseLUDecomposition::copy_from (const SparseMatrix &matrix return; } - // preset the elements - std::fill_n (&this->global_entry(0), - this->n_nonzero_elements(), - 0); + // preset the elements by zero. this needs to be written in a slightly + // awkward way so that we find the corresponding function in the base class. + SparseMatrix::operator= (number(0)); // note: pointers to the sparsity // pattern of the old matrix!