From: Jonathan Perry-Houts Date: Fri, 18 Sep 2015 16:28:42 +0000 (-0700) Subject: Improve error message if FiniteElement has not been initialized. X-Git-Tag: v8.4.0-rc2~394^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1636%2Fhead;p=dealii.git Improve error message if FiniteElement has not been initialized. --- diff --git a/include/deal.II/dofs/dof_handler.h b/include/deal.II/dofs/dof_handler.h index ff474d374b..2a3beb5603 100644 --- a/include/deal.II/dofs/dof_handler.h +++ b/include/deal.II/dofs/dof_handler.h @@ -1186,7 +1186,7 @@ inline const FiniteElement & DoFHandler::get_fe () const { - Assert(selected_fe!=0, ExcNotInitialized()); + Assert(selected_fe!=0, ExcMessage("You are trying to access the DoFHandler's FiniteElement object before it has been initialized.")); return *selected_fe; }