From 901047f8476145869a4988649a6f3d605e1c0c4c Mon Sep 17 00:00:00 2001 From: bangerth Date: Wed, 17 Apr 2013 18:32:47 +0000 Subject: [PATCH] Add a note. git-svn-id: https://svn.dealii.org/trunk@29319 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/numerics/fe_field_function.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/deal.II/include/deal.II/numerics/fe_field_function.h b/deal.II/include/deal.II/numerics/fe_field_function.h index 0bdc9ea9bd..98b7b663c7 100644 --- a/deal.II/include/deal.II/numerics/fe_field_function.h +++ b/deal.II/include/deal.II/numerics/fe_field_function.h @@ -144,7 +144,7 @@ namespace Functions * { * solution_at_origin = solution_function.value (origin); * } - * catch (const typename Functions::FEFieldFunction::ExcPointNotAvailableHere &) + * catch (const typename Functions::FEFieldFunction,TrilinosWrappers::MPI::Vector>::ExcPointNotAvailableHere &) * { * point_found = false; * } @@ -153,6 +153,12 @@ namespace Functions * ...do something...; * @endcode * + * @note To C++, Functions::FEFieldFunction::ExcPointNotAvailableHere + * and Functions::FEFieldFunction,TrilinosWrappers::MPI::Vector>::ExcPointNotAvailableHere + * are distinct types. You need to make sure that the type of the exception you + * catch matches the type of the object that throws it, as shown in + * the example above. + * * @ingroup functions * @author Luca Heltai, 2006, Markus Buerg, 2012, Wolfgang Bangerth, 2013 */ @@ -479,7 +485,7 @@ namespace Functions * Exception */ DeclException0 (ExcPointNotAvailableHere); - + private: /** * Typedef holding the local cell_hint. -- 2.39.5