]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix an exception type. 6138/head
authorDavid Wells <wellsd2@rpi.edu>
Sun, 1 Apr 2018 18:41:47 +0000 (14:41 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Sun, 1 Apr 2018 18:41:47 +0000 (14:41 -0400)
The documentation of the function states that we should use
ExcInterpolationNotImplemented.

source/fe/fe_system.cc

index 076464baa796f307cfae1f5998849d32620f0db2..ca306f75f2ede891bf2cc64763ba6f06e1b2852c 100644 (file)
@@ -1958,7 +1958,9 @@ get_subface_interpolation_matrix (const FiniteElement<dim,spacedim> &x_source_fe
     }
   else
     {
-      Assert(fe_other_system != nullptr, ExcInternalError());
+      // we should have caught this at the start, but check again anyway
+      Assert(fe_other_system != nullptr, (typename FiniteElement<dim,spacedim>::
+                                          ExcInterpolationNotImplemented()));
     }
 }
 

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.