From: Wolfgang Bangerth Date: Tue, 28 Apr 2009 13:34:47 +0000 (+0000) Subject: Suggestion by Rostislav Khlebnikov: A call to fill_n was obviously wrong. It's a... X-Git-Tag: v8.0.0~7737 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9d679da28c33d3d1edf19b340bbd3d51ab53589;p=dealii.git Suggestion by Rostislav Khlebnikov: A call to fill_n was obviously wrong. It's a wonder that this never crashed in the first place. git-svn-id: https://svn.dealii.org/trunk@18764 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/chunk_sparse_matrix.templates.h b/deal.II/lac/include/lac/chunk_sparse_matrix.templates.h index 2a68790986..4c7c9d5b11 100644 --- a/deal.II/lac/include/lac/chunk_sparse_matrix.templates.h +++ b/deal.II/lac/include/lac/chunk_sparse_matrix.templates.h @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2008 by the deal.II authors +// Copyright (C) 2008, 2009 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -278,7 +278,6 @@ ChunkSparseMatrix::operator = (const double d) { const unsigned int chunk_size = cols->get_chunk_size(); std::fill_n (val, - val + cols->sparsity_pattern.n_nonzero_elements() * chunk_size * chunk_size, 0.);