From d5b1efd731a07a6620908ba2470cc1d51078d13b Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Tue, 17 Aug 2010 08:58:48 +0000 Subject: [PATCH] replace stupid integer product by the more reasonable test that both are nonzero this allows us to use copy_from with sparsity patterns of size 65536 git-svn-id: https://svn.dealii.org/trunk@21669 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/source/sparsity_pattern.cc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/deal.II/lac/source/sparsity_pattern.cc b/deal.II/lac/source/sparsity_pattern.cc index 500bfac7a4..2756701c50 100644 --- a/deal.II/lac/source/sparsity_pattern.cc +++ b/deal.II/lac/source/sparsity_pattern.cc @@ -568,12 +568,9 @@ SparsityPattern::copy_from (const CSP &csp, std::vector row_lengths (csp.n_rows()); for (unsigned int i=0; i 0) + if (n_rows() != 0 && n_cols() != 0) for (unsigned int row = 0; row