From: Wolfgang Bangerth Date: Sun, 15 Mar 2015 06:57:52 +0000 (-0500) Subject: Adjust error messages in the VectorTools namespace. X-Git-Tag: v8.3.0-rc1~369^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f24c7500e0553a977016dc9f066dc8e6edeadef;p=dealii.git Adjust error messages in the VectorTools namespace. --- 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);