]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Move a function that is not performance-critical to the .cc file.
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 22 Jan 2021 03:50:31 +0000 (20:50 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 22 Jan 2021 21:48:40 +0000 (14:48 -0700)
include/deal.II/grid/reference_cell.h
source/grid/reference_cell.cc

index 4943f2e34d98fd1aa99ec8cd37004d1a94c09a74..7bf0fadc60d6ed17311f114ba1bac834e9713a84 100644 (file)
@@ -383,38 +383,6 @@ namespace ReferenceCell
 
 
 
-  /**
-   * Convert the given reference cell type to a string.
-   */
-  inline std::string
-  Type::to_string() const
-  {
-    if (*this == Vertex)
-      return "Vertex";
-    else if (*this == Line)
-      return "Line";
-    else if (*this == Tri)
-      return "Tri";
-    else if (*this == Quad)
-      return "Quad";
-    else if (*this == Tet)
-      return "Tet";
-    else if (*this == Pyramid)
-      return "Pyramid";
-    else if (*this == Wedge)
-      return "Wedge";
-    else if (*this == Hex)
-      return "Hex";
-    else if (*this == Invalid)
-      return "Invalid";
-
-    Assert(false, ExcNotImplemented());
-
-    return "Invalid";
-  }
-
-
-
   template <int dim>
   inline constexpr const Type &
   Type::get_simplex()
index 81a1820a0995eaeceb0a725f868677e22cd939bb..1ad89af1af1c5e53d274265e6eb6c37815ffc607 100644 (file)
@@ -62,6 +62,39 @@ namespace ReferenceCell
     internal::make_reference_cell_from_int(static_cast<std::uint8_t>(-1));
 
 
+
+  /**
+   * Convert the given reference cell type to a string.
+   */
+  std::string
+  Type::to_string() const
+  {
+    if (*this == Vertex)
+      return "Vertex";
+    else if (*this == Line)
+      return "Line";
+    else if (*this == Tri)
+      return "Tri";
+    else if (*this == Quad)
+      return "Quad";
+    else if (*this == Tet)
+      return "Tet";
+    else if (*this == Pyramid)
+      return "Pyramid";
+    else if (*this == Wedge)
+      return "Wedge";
+    else if (*this == Hex)
+      return "Hex";
+    else if (*this == Invalid)
+      return "Invalid";
+
+    Assert(false, ExcNotImplemented());
+
+    return "Invalid";
+  }
+
+
+
   template <int dim, int spacedim>
   void
   make_triangulation(const Type &                  reference_cell,

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.