From: bangerth Date: Wed, 6 Jun 2007 11:40:10 +0000 (+0000) Subject: Fix a mistaken assert X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=186fe4eee98bc51ae2db7f1a49bae05c92267d99;p=dealii-svn.git Fix a mistaken assert git-svn-id: https://svn.dealii.org/trunk@14756 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/dofs/dof_constraints.templates.h b/deal.II/deal.II/include/dofs/dof_constraints.templates.h index ee109645cb..5601027508 100644 --- a/deal.II/deal.II/include/dofs/dof_constraints.templates.h +++ b/deal.II/deal.II/include/dofs/dof_constraints.templates.h @@ -916,7 +916,13 @@ add_entries_local_to_global (const std::vector &local_dof_indices, local_dof_indices[i]); } else - Assert (false, ExcInternalError()); + // the only case that can + // happen here is one that we + // have already taken care of + Assert ((is_constrained_i == false) && + (is_constrained_j == false) && + (keep_constrained_entries == true), + ExcInternalError()); } } }