]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove deprecated constructor of SparseMIC.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 5 Jan 2015 03:57:25 +0000 (21:57 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 9 Jan 2015 06:56:04 +0000 (00:56 -0600)
doc/news/changes.h
include/deal.II/lac/sparse_mic.h
include/deal.II/lac/sparse_mic.templates.h
tests/lac/sparse_mic.cc

index 15e529a54bcb2c6a99ea1458d60940f1b9bd5b5a..0b672c655d50471e567611fdd1f4189767e607db 100644 (file)
@@ -104,6 +104,7 @@ inconvenience this causes.
 - Triangulation::clear_user_pointers.
 - The deprecated constructor of SparseILU.
 - SparseILU::apply_decomposition.
+- The deprecated constructor of SparseMIC.
 
 <!-- ----------- GENERAL IMPROVEMENTS ----------------- -->
 
index c92c40db839e73a253d8865e45488ebfa9f8fef5..b14b22a3866d98336cc2404f8805d62b68903e91 100644 (file)
@@ -56,14 +56,6 @@ public:
    */
   SparseMIC ();
 
-  /**
-   * @deprecated This method is deprecated, and left for backward
-   * compatibility. It will be removed in later versions.  Instead, pass the
-   * sparsity pattern that you want used for the decomposition in the
-   * AdditionalData structure.
-   */
-  SparseMIC (const SparsityPattern &sparsity) DEAL_II_DEPRECATED;
-
   /**
    * Destructor.
    */
index d949e84e08462e58387dae1db671b3020f353b72..c51aa5546d81b38b9552711b3070d07dc6e59b45 100644 (file)
@@ -33,17 +33,6 @@ SparseMIC<number>::SparseMIC ()
 
 
 
-template <typename number>
-SparseMIC<number>::SparseMIC (const SparsityPattern &sparsity)
-  :
-  diag(0),
-  inv_diag(0),
-  inner_sums(0)
-{
-  SparseMatrix<number>::reinit (sparsity);
-}
-
-
 template <typename number>
 SparseMIC<number>::~SparseMIC()
 {
index a3445f2218257aab517fb69c87aec5e21057db65..8c0ed6a1c225b2d6a6e6ecbe9ceccfdb65ab0cd5 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2001 - 2013 by the deal.II authors
+// Copyright (C) 2001 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -90,8 +90,10 @@ int main()
               Assert (false, ExcNotImplemented());
             };
           mic_pattern.compress();
-          SparseMIC<double> mic (mic_pattern);
-          mic.decompose (A);
+         SparseMIC<double>::AdditionalData data;
+         data.use_this_sparsity = &mic_pattern;
+          SparseMIC<double> mic;
+         mic.initialize (A, data);
 
           // now for three test vectors v
           // determine norm of

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.