]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Delete a function that came in via a rogues patch (25842).
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 13 Aug 2012 14:41:30 +0000 (14:41 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 13 Aug 2012 14:41:30 +0000 (14:41 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_bigger_global_dof_indices_3@25942 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/base/utilities.h

index 280f18208a5abc1e6369e4ea1118d995e0788fed..ce983cf688a42b8a876a86da9a5f22eed7c59321 100644 (file)
@@ -643,44 +643,6 @@ namespace Utilities
 #endif
 
 
-  template <typename Integer>
-  std::vector<Integer>
-  reverse_permutation (const std::vector<Integer> &permutation)
-  {
-    const unsigned int n = permutation.size();
-
-    std::vector<Integer> out (n);
-    for (unsigned int i=0; i<n; ++i)
-      out[i] = n - 1 - permutation[i];
-
-    return out;
-  }
-
-
-
-  template <typename Integer>
-  std::vector<Integer>
-  invert_permutation (const std::vector<Integer> &permutation)
-  {
-    const unsigned int n = permutation.size();
-
-    std::vector<Integer> out (n, numbers::invalid_unsigned_int);
-
-    for (unsigned int i=0; i<n; ++i)
-      {
-       Assert (permutation[i] < n, ExcIndexRange (permutation[i], 0, n));
-       out[permutation[i]] = i;
-      }
-
-                                    // check that we have actually reached
-                                    // all indices
-    for (unsigned int i=0; i<n; ++i)
-      Assert (out[i] != numbers::invalid_unsigned_int,
-             ExcMessage ("The given input permutation had duplicate entries!"));
-
-    return out;
-  }
-  
 }
 
 

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.