From 8f24c7500e0553a977016dc9f066dc8e6edeadef Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 15 Mar 2015 01:57:52 -0500 Subject: [PATCH] Adjust error messages in the VectorTools namespace. --- include/deal.II/numerics/vector_tools.h | 16 +++++----------- .../deal.II/numerics/vector_tools.templates.h | 6 ++++-- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/include/deal.II/numerics/vector_tools.h b/include/deal.II/numerics/vector_tools.h index 3264cd2b83..1aadb5d436 100644 --- a/include/deal.II/numerics/vector_tools.h +++ b/include/deal.II/numerics/vector_tools.h @@ -2190,20 +2190,14 @@ namespace VectorTools //@} - /** - * Exception. - */ - DeclException0(ExcInvalidMaterialIndicator); - - /** - * Exception - */ - DeclException0 (ExcInvalidBoundaryIndicator); - /** * Exception */ - DeclException0 (ExcNonInterpolatingFE); + DeclExceptionMsg (ExcNonInterpolatingFE, + "You are attempting an operation that requires the " + "finite element involved to be 'interpolating', i.e., " + "it needs to have support points. The finite element " + "you are using here does not appear to have those."); /** * Exception diff --git a/include/deal.II/numerics/vector_tools.templates.h b/include/deal.II/numerics/vector_tools.templates.h index 22f94a1d52..8f0492ec33 100644 --- a/include/deal.II/numerics/vector_tools.templates.h +++ b/include/deal.II/numerics/vector_tools.templates.h @@ -352,7 +352,8 @@ namespace VectorTools return; Assert( function_map.find(numbers::invalid_material_id) == function_map.end(), - ExcInvalidMaterialIndicator() ); + ExcMessage("You cannot specify the invalid material indicator " + "in your function map.")); for ( typename std::map< types::material_id, const Function* >::const_iterator iter = function_map.begin(); @@ -1740,7 +1741,8 @@ namespace VectorTools return; Assert (function_map.find(numbers::internal_face_boundary_id) == function_map.end(), - ExcInvalidBoundaryIndicator()); + ExcMessage("You cannot specify the special boundary indicator " + "for interior faces in your function map.")); const unsigned int n_components = DoFTools::n_components(dof); const bool fe_is_system = (n_components != 1); -- 2.39.5