From 7ea220b314e5e56577a0685086cd5df2e0159b36 Mon Sep 17 00:00:00 2001 From: Jonathan Perry-Houts Date: Fri, 18 Sep 2015 09:28:42 -0700 Subject: [PATCH] Improve error message if FiniteElement has not been initialized. --- include/deal.II/dofs/dof_handler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5