]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove match_dimension 8529/head
authorDaniel Arndt <arndtd@ornl.gov>
Fri, 9 Aug 2019 00:35:46 +0000 (18:35 -0600)
committerDaniel Arndt <arndtd@ornl.gov>
Fri, 9 Aug 2019 00:36:49 +0000 (18:36 -0600)
include/deal.II/fe/fe_tools.templates.h

index 2e41741d70e2161588016f1832ca19dc8db40a61..94ff5331c83737bb877666e24f0f4fa6e99742a5 100644 (file)
@@ -1355,39 +1355,6 @@ namespace FETools
         fe2.get_interpolation_matrix(fe1, tmp);
         interpolation_matrix = tmp;
       }
-
-
-
-      // return how many characters
-      // starting at the given position
-      // of the string match either the
-      // generic string "<dim>" or the
-      // specialized string with "dim"
-      // replaced with the numeric value
-      // of the template argument
-      template <int dim, int spacedim>
-      inline unsigned int
-      match_dimension(const std::string &name, const unsigned int position)
-      {
-        if (position >= name.size())
-          return 0;
-
-        if ((position + 5 < name.size()) && (name[position] == '<') &&
-            (name[position + 1] == 'd') && (name[position + 2] == 'i') &&
-            (name[position + 3] == 'm') && (name[position + 4] == '>'))
-          return 5;
-
-        Assert(dim < 10, ExcNotImplemented());
-        const char dim_char = '0' + dim;
-
-        if ((position + 3 < name.size()) && (name[position] == '<') &&
-            (name[position + 1] == dim_char) && (name[position + 2] == '>'))
-          return 3;
-
-        // some other string that doesn't
-        // match
-        return 0;
-      }
     } // namespace FEToolsGetInterpolationMatrixHelper
   }   // 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.