]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add a note.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 17 Apr 2013 18:32:47 +0000 (18:32 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 17 Apr 2013 18:32:47 +0000 (18:32 +0000)
git-svn-id: https://svn.dealii.org/trunk@29319 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/numerics/fe_field_function.h

index 0bdc9ea9bd42ae0ee325a8facdc7370bdd9e5cd2..98b7b663c7423701bf8e1df3154868a38e1122ec 100644 (file)
@@ -144,7 +144,7 @@ namespace Functions
    *     {
    *       solution_at_origin = solution_function.value (origin);
    *     }
-   *   catch (const typename Functions::FEFieldFunction<dim>::ExcPointNotAvailableHere &)
+   *   catch (const typename Functions::FEFieldFunction<dim,DoFHandler<dim>,TrilinosWrappers::MPI::Vector>::ExcPointNotAvailableHere &)
    *     {
    *       point_found = false;
    *     }
@@ -153,6 +153,12 @@ namespace Functions
    *     ...do something...;
    * @endcode
    *
+   * @note To C++, <code>Functions::FEFieldFunction<dim>::ExcPointNotAvailableHere</code>
+   * and <code>Functions::FEFieldFunction<dim,DoFHandler<dim>,TrilinosWrappers::MPI::Vector>::ExcPointNotAvailableHere</code>
+   * 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.

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.