]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove deprecated SparsityTools::reorder_Cuthill_McKee 4395/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 14 May 2017 23:07:26 +0000 (01:07 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 14 May 2017 23:09:47 +0000 (01:09 +0200)
doc/news/changes/incompatibilities/20170515DanielArndt [new file with mode: 0644]
include/deal.II/lac/sparsity_tools.h
source/lac/sparsity_tools.cc

diff --git a/doc/news/changes/incompatibilities/20170515DanielArndt b/doc/news/changes/incompatibilities/20170515DanielArndt
new file mode 100644 (file)
index 0000000..2cfb000
--- /dev/null
@@ -0,0 +1,5 @@
+Changed: The deprecated function SparsityTools::reorder_Cuthill_McKee() 
+acting on a SparsityPattern object has been removed.
+Use the one acting on a DynamicSparsityPattern instead.
+<br>
+(Daniel Arndt, 2017/05/15)
index 74b7c57bd279394bb64d76263c4cc580173240f3..cad55f07841cb08ed8c0d85f2dcc0e91396f653e 100644 (file)
@@ -135,16 +135,6 @@ namespace SparsityTools
                          std::vector<DynamicSparsityPattern::size_type> &new_indices,
                          const std::vector<DynamicSparsityPattern::size_type> &starting_indices = std::vector<DynamicSparsityPattern::size_type>());
 
-  /**
-   * As above, but taking a SparsityPattern object instead.
-   *
-   * @deprecated
-   */
-  void
-  reorder_Cuthill_McKee (const SparsityPattern &sparsity,
-                         std::vector<SparsityPattern::size_type> &new_indices,
-                         const std::vector<SparsityPattern::size_type> &starting_indices = std::vector<SparsityPattern::size_type>()) DEAL_II_DEPRECATED;
-
   /**
    * For a given sparsity pattern, compute a re-enumeration of row/column
    * indices in a hierarchical way, similar to what
index fd152985b16c08bd38aa45000ef7eb863369c0e5..ef32909eaa321f0ba1e3e503fcb5fa41d7be1142 100644 (file)
@@ -328,23 +328,6 @@ namespace SparsityTools
 
 
 
-  void
-  reorder_Cuthill_McKee (const SparsityPattern                   &sparsity,
-                         std::vector<SparsityPattern::size_type> &new_indices,
-                         const std::vector<SparsityPattern::size_type> &starting_indices)
-  {
-    DynamicSparsityPattern dsp(sparsity.n_rows(), sparsity.n_cols());
-    for (unsigned int row=0; row<sparsity.n_rows(); ++row)
-      {
-        for (SparsityPattern::iterator it=sparsity.begin(row); it!=sparsity.end(row)
-             && it->is_valid_entry() ; ++it)
-          dsp.add(row, it->column());
-      }
-    reorder_Cuthill_McKee(dsp, new_indices, starting_indices);
-  }
-
-
-
   namespace internal
   {
     void

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.