]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Provide general template function definitions in GeometryInfo
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 25 Feb 2018 17:36:40 +0000 (18:36 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 25 Feb 2018 17:36:40 +0000 (18:36 +0100)
include/deal.II/base/geometry_info.h

index 9c7c05ddef84bf8809055d7d47f902d6a9da6516..d1795701678cd2b5c225173304d60b5faff8e3d1 100644 (file)
@@ -2924,6 +2924,15 @@ GeometryInfo<dim>::child_to_cell_coordinates (const Point<dim>         &/*p*/,
 
 
 
+template <int dim>
+inline
+bool
+GeometryInfo<dim>::is_inside_unit_cell (const Point<dim> &)
+{
+  Assert(false, ExcNotImplemented());
+  return false;
+}
+
 template <>
 inline
 bool
@@ -2955,6 +2964,18 @@ GeometryInfo<3>::is_inside_unit_cell (const Point<3> &p)
          (p[2] >= 0.) && (p[2] <= 1.);
 }
 
+
+
+template <int dim>
+inline
+bool
+GeometryInfo<dim>::is_inside_unit_cell (const Point<dim> &,
+                                        const double)
+{
+  Assert(false, ExcNotImplemented());
+  return false;
+}
+
 template <>
 inline
 bool
@@ -3151,6 +3172,16 @@ GeometryInfo<dim>::n_children(const RefinementCase<dim> &ref_case)
 }
 
 
+
+template <int dim>
+inline
+unsigned int
+GeometryInfo<dim>::n_subfaces(const internal::SubfaceCase<dim> &)
+{
+  Assert(false, ExcNotImplemented());
+  return 0;
+}
+
 template <>
 inline
 unsigned int
@@ -3160,8 +3191,6 @@ GeometryInfo<1>::n_subfaces(const internal::SubfaceCase<1> &)
   return 0;
 }
 
-
-
 template <>
 inline
 unsigned int
@@ -3183,6 +3212,17 @@ GeometryInfo<3>::n_subfaces(const internal::SubfaceCase<3> &subface_case)
 }
 
 
+
+template <int dim>
+inline
+double
+GeometryInfo<dim>::subface_ratio(const internal::SubfaceCase<dim> &,
+                                 const unsigned int)
+{
+  Assert(false, ExcNotImplemented());
+  return 0.;
+}
+
 template <>
 inline
 double
@@ -3293,6 +3333,19 @@ GeometryInfo<3>::subface_ratio(const internal::SubfaceCase<3> &subface_case,
 
 
 
+template <int dim>
+RefinementCase<dim-1>
+inline
+GeometryInfo<dim>::face_refinement_case(const RefinementCase<dim> &,
+                                        const unsigned int,
+                                        const bool,
+                                        const bool,
+                                        const bool)
+{
+  Assert (false, ExcNotImplemented());
+  return RefinementCase<dim-1>::no_refinement;
+}
+
 template <>
 RefinementCase<0>
 inline
@@ -3445,6 +3498,16 @@ GeometryInfo<3>::face_refinement_case(const RefinementCase<3> &cell_refinement_c
 
 
 
+template <int dim>
+inline
+RefinementCase<1>
+GeometryInfo<dim>::line_refinement_case(const RefinementCase<dim> &,
+                                        const unsigned int)
+{
+  Assert(false, ExcNotImplemented());
+  return RefinementCase<1>::no_refinement;
+}
+
 template <>
 inline
 RefinementCase<1>
@@ -3511,6 +3574,20 @@ GeometryInfo<3>::line_refinement_case(const RefinementCase<3> &cell_refinement_c
 
 
 
+template <int dim>
+inline
+RefinementCase<dim>
+GeometryInfo<dim>::min_cell_refinement_case_for_face_refinement(const RefinementCase<dim-1> &,
+    const unsigned int,
+    const bool,
+    const bool,
+    const bool)
+{
+  Assert(false, ExcNotImplemented());
+
+  return RefinementCase<dim>::no_refinement;
+}
+
 template <>
 inline
 RefinementCase<1>
@@ -3616,6 +3693,16 @@ GeometryInfo<3>::min_cell_refinement_case_for_face_refinement(const RefinementCa
 
 
 
+template <int dim>
+inline
+RefinementCase<dim>
+GeometryInfo<dim>::min_cell_refinement_case_for_line_refinement(const unsigned int)
+{
+  Assert(false, ExcNotImplemented());
+
+  return RefinementCase<dim>::no_refinement;
+}
+
 template <>
 inline
 RefinementCase<1>
@@ -3666,10 +3753,6 @@ GeometryInfo<3>::min_cell_refinement_case_for_line_refinement(const unsigned int
 
 
 
-
-
-
-
 template <>
 inline
 unsigned int

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.