]> https://gitweb.dealii.org/ - dealii.git/commitdiff
this assertion was wrong for a sparsity pattern of size zero
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Wed, 31 Oct 2007 16:01:43 +0000 (16:01 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Wed, 31 Oct 2007 16:01:43 +0000 (16:01 +0000)
git-svn-id: https://svn.dealii.org/trunk@15415 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/dofs/dof_tools.cc

index 93a330a8998eabcc4cf661fe36db0e9bc7029a29..4d0b6fe710566cd640448ab6d658fa4ffa43042e 100644 (file)
@@ -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<unsigned int>::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<unsigned int>::const_iterator i=dof_to_boundary_mapping.begin();

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.