]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix mapping_q_generic codim2 1716/head
authorTimo Heister <timo.heister@gmail.com>
Mon, 5 Oct 2015 12:45:28 +0000 (08:45 -0400)
committerTimo Heister <timo.heister@gmail.com>
Mon, 5 Oct 2015 12:45:28 +0000 (08:45 -0400)
- remove unused function do_transform_real_to_unit_cell_internal
- actually report ExcNotImplemented for codim2

source/fe/mapping_q_generic.cc

index 7f200432259a61ddc10001534d29ecfca644ac81..c59e399fc269ba1cec24655a5c3871301760ae92 100644 (file)
@@ -1380,24 +1380,6 @@ namespace
   }
 
 
-
-
-
-  /**
-   * Implementation of transform_real_to_unit_cell for other values of
-   * dim, spacedim
-   */
-  Point<1>
-  do_transform_real_to_unit_cell_internal
-  (const Triangulation<1,3>::cell_iterator &,
-   const Point<3> &,
-   const Point<1> &,
-   MappingQGeneric<1,3>::InternalData &)
-  {
-    Assert (false, ExcNotImplemented());
-    return Point<1>();
-  }
-
 }
 
 
@@ -1551,6 +1533,18 @@ transform_real_to_unit_cell_internal
   return do_transform_real_to_unit_cell_internal_codim1<2>(cell, p, initial_p_unit, *mdata);
 }
 
+template<>
+Point<1>
+MappingQGeneric<1, 3>::
+transform_real_to_unit_cell_internal
+(const Triangulation<1, 3>::cell_iterator &,
+ const Point<3> &,
+ const Point<1> &) const
+{
+  Assert (false, ExcNotImplemented());
+  return Point<1>();
+}
+
 
 namespace internal
 {

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.