From 00f3aa1288485d0ba8461e450ac1d58c5f258559 Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Tue, 20 Apr 2021 07:50:49 +0200 Subject: [PATCH] Add error message to GridIn::ExcNoTriangulationSelected --- include/deal.II/grid/grid_in.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/deal.II/grid/grid_in.h b/include/deal.II/grid/grid_in.h index 31d658530e..494fa93d26 100644 --- a/include/deal.II/grid/grid_in.h +++ b/include/deal.II/grid/grid_in.h @@ -754,7 +754,12 @@ public: /** * Exception */ - DeclException0(ExcNoTriangulationSelected); + DeclExceptionMsg(ExcNoTriangulationSelected, + "No Triangulation has been attached to this GridIn object " + "so that nothing can be filled during any read function " + "calls. Please pass a reference to the Triangulation tria " + "to be filled in the constructor GridIn(tria) or attach " + "it with the function call GridIn::attach_triangulation()."); /** * Exception */ -- 2.39.5