From: bangerth Date: Tue, 15 Jan 2013 03:00:39 +0000 (+0000) Subject: Avoid a silly use of SparseMatrix::global_entry. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47e9ba8994b0746dd2caf7426a132ac3b69bb75c;p=dealii-svn.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!