From 5fecff8665ea01c17dcfd1a543697568a3b8cad4 Mon Sep 17 00:00:00 2001 From: bangerth Date: Sat, 9 Feb 2013 22:07:20 +0000 Subject: [PATCH] Fix a thinko. git-svn-id: https://svn.dealii.org/trunk@28298 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/lac/sparsity_pattern.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/deal.II/include/deal.II/lac/sparsity_pattern.h b/deal.II/include/deal.II/lac/sparsity_pattern.h index 252feb11fb..faa6e0ef46 100644 --- a/deal.II/include/deal.II/lac/sparsity_pattern.h +++ b/deal.II/include/deal.II/lac/sparsity_pattern.h @@ -1,7 +1,7 @@ //--------------------------------------------------------------------------- // $Id$ // -// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 by the deal.II authors +// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -1005,8 +1005,9 @@ public: * Return whether this object stores only those entries that have been added * explicitly, or if the sparsity pattern contains elements that have been * added through other means (implicitly) while building it. For the current - * class, the result is true if and only if it is square because it then - * unconditionally stores the diagonal entries whether they have been added explicitly or not. + * class, the result is false if and only if it is square because it then + * unconditionally stores the diagonal entries whether they have been added + * explicitly or not. * * This function mainly serves the purpose of describing the current class * in cases where several kinds of sparsity patterns can be passed as @@ -1705,7 +1706,7 @@ inline bool SparsityPattern::stores_only_added_elements () const { - return store_diagonal_first_in_row; + return (store_diagonal_first_in_row == false); } -- 2.39.5