From: Wolfgang Bangerth Date: Wed, 11 Oct 2017 14:49:37 +0000 (-0600) Subject: Replace exception without message by ones with a message. X-Git-Tag: v9.0.0-rc1~944^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da6d5a23ebdc8e48142fdf0d417ed079a6052650;p=dealii.git Replace exception without message by ones with a message. --- diff --git a/include/deal.II/hp/dof_handler.h b/include/deal.II/hp/dof_handler.h index 47b1103b58..90d2ca2a35 100644 --- a/include/deal.II/hp/dof_handler.h +++ b/include/deal.II/hp/dof_handler.h @@ -717,10 +717,6 @@ namespace hp * Exception */ DeclException0 (ExcNoFESelected); - /** - * Exception - */ - DeclException0 (ExcRenumberingIncomplete); /** * Exception */ diff --git a/source/hp/dof_handler.cc b/source/hp/dof_handler.cc index 9dcc6758ef..067f8c87fe 100644 --- a/source/hp/dof_handler.cc +++ b/source/hp/dof_handler.cc @@ -1393,8 +1393,7 @@ namespace hp { Assert(levels.size()>0, ExcMessage("You need to distribute DoFs before you can renumber them.")); - Assert (new_numbers.size() == n_locally_owned_dofs(), - ExcRenumberingIncomplete()); + AssertDimension (new_numbers.size(), n_locally_owned_dofs()); #ifdef DEBUG // assert that the new indices are