From: Guido Kanschat Date: Wed, 31 Oct 2007 16:01:43 +0000 (+0000) Subject: this assertion was wrong for a sparsity pattern of size zero X-Git-Tag: v8.0.0~9681 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b1786b0ed9a8f40b55a84c8d6f7c3040cac1394;p=dealii.git this assertion was wrong for a sparsity pattern of size zero git-svn-id: https://svn.dealii.org/trunk@15415 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/dofs/dof_tools.cc b/deal.II/deal.II/source/dofs/dof_tools.cc index 93a330a899..4d0b6fe710 100644 --- a/deal.II/deal.II/source/dofs/dof_tools.cc +++ b/deal.II/deal.II/source/dofs/dof_tools.cc @@ -359,7 +359,7 @@ DoFTools::make_boundary_sparsity_pattern ( Assert (sparsity.n_cols() == dof.n_boundary_dofs(), ExcDimensionMismatch (sparsity.n_cols(), dof.n_boundary_dofs())); #ifdef DEBUG - if (true) + if (sparsity.n_rows() != 0) { unsigned int max_element = 0; for (std::vector::const_iterator i=dof_to_boundary_mapping.begin(); @@ -423,7 +423,7 @@ void DoFTools::make_boundary_sparsity_pattern ( Assert (sparsity.n_cols() == dof.n_boundary_dofs (boundary_indicators), ExcDimensionMismatch (sparsity.n_cols(), dof.n_boundary_dofs (boundary_indicators))); #ifdef DEBUG - if (true) + if (sparsity.n_rows() != 0) { unsigned int max_element = 0; for (std::vector::const_iterator i=dof_to_boundary_mapping.begin();