From: Guido Kanschat Date: Tue, 17 Aug 2010 08:58:48 +0000 (+0000) Subject: replace stupid integer product by the more reasonable test that both are nonzero X-Git-Tag: v8.0.0~5718 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5b1efd731a07a6620908ba2470cc1d51078d13b;p=dealii.git 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 --- 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