]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix up trilinos_precondition.h 4454/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 3 Jun 2017 16:56:48 +0000 (18:56 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 3 Jun 2017 17:32:40 +0000 (19:32 +0200)
include/deal.II/lac/trilinos_precondition.h
include/deal.II/lac/trilinos_vector.h
include/deal.II/lac/trilinos_vector_base.h
source/lac/trilinos_precondition.cc
source/lac/trilinos_solver.cc

index 0822c5b9b81aa9eb586e60d1ba0579bea06dd31c..1bec3c5c73f78eb3ee8456a9987668c0dbd131b5 100644 (file)
@@ -23,7 +23,7 @@
 
 #  include <deal.II/base/subscriptor.h>
 
-#  include <deal.II/lac/trilinos_vector_base.h>
+#  include <deal.II/lac/trilinos_vector.h>
 #  include <deal.II/lac/la_parallel_vector.h>
 
 #  include <memory>
@@ -133,14 +133,14 @@ namespace TrilinosWrappers
     /**
      * Apply the preconditioner.
      */
-    virtual void vmult (VectorBase       &dst,
-                        const VectorBase &src) const;
+    virtual void vmult (MPI::Vector       &dst,
+                        const MPI::Vector &src) const;
 
     /**
      * Apply the transpose preconditioner.
      */
-    virtual void Tvmult (VectorBase       &dst,
-                         const VectorBase &src) const;
+    virtual void Tvmult (MPI::Vector       &dst,
+                         const MPI::Vector &src) const;
 
     /**
      * Apply the preconditioner on deal.II data structures instead of the ones
@@ -1877,14 +1877,14 @@ namespace TrilinosWrappers
     /**
      * Apply the preconditioner, i.e., dst = src.
      */
-    void vmult (VectorBase       &dst,
-                const VectorBase &src) const;
+    void vmult (MPI::Vector       &dst,
+                const MPI::Vector &src) const;
 
     /**
      * Apply the transport conditioner, i.e., dst = src.
      */
-    void Tvmult (VectorBase       &dst,
-                 const VectorBase &src) const;
+    void Tvmult (MPI::Vector       &dst,
+                 const MPI::Vector &src) const;
 
     /**
      * Apply the preconditioner on deal.II data structures instead of the ones
@@ -1950,8 +1950,8 @@ namespace TrilinosWrappers
 
   inline
   void
-  PreconditionBase::vmult (VectorBase       &dst,
-                           const VectorBase &src) const
+  PreconditionBase::vmult (MPI::Vector       &dst,
+                           const MPI::Vector &src) const
   {
     Assert (dst.vector_partitioner().SameAs(preconditioner->OperatorRangeMap()),
             ExcNonMatchingMaps("dst"));
@@ -1965,8 +1965,8 @@ namespace TrilinosWrappers
 
   inline
   void
-  PreconditionBase::Tvmult (VectorBase       &dst,
-                            const VectorBase &src) const
+  PreconditionBase::Tvmult (MPI::Vector       &dst,
+                            const MPI::Vector &src) const
   {
     Assert (dst.vector_partitioner().SameAs(preconditioner->OperatorRangeMap()),
             ExcNonMatchingMaps("dst"));
index da0ef5bc05148e7f6cfef2a7198a73474f071b51..1d9ede0a6228a1234ec89eebc82334f15e062155 100644 (file)
@@ -226,9 +226,7 @@ namespace TrilinosWrappers
      * The Epetra_FEVector is precisely the kind of vector
      * we deal with all the time - we probably get it from some assembly
      * process, where also entries not locally owned might need to written and
-     * hence need to be forwarded to the owner. The only requirement for this
-     * class to work is that Trilinos is installed with the same compiler as is
-     * used for compilation of deal.II.
+     * hence need to be forwarded to the owner.
      *
      * The interface of this class is modeled after the existing Vector class in
      * deal.II. It has almost the same member functions, and is often
@@ -1232,8 +1230,6 @@ namespace TrilinosWrappers
        * Make the reference class a friend.
        */
       friend class internal::VectorReference;
-      friend class Vector;
-      friend class MPI::Vector;
     };
 
 
index 10b5f44f6bf0ccea6456d528f77deb0d9c33838d..2427f3a5f08c3d799f762ac3f3429c4c08961a50 100644 (file)
@@ -16,6 +16,9 @@
 #ifndef dealii__trilinos_vector_base_h
 #define dealii__trilinos_vector_base_h
 
+#warning This file is deprecated. Use <deal.II/lac/trilinos_vector.h> instead.
+
+#include <deal.II/base/config.h>
 #include <deal.II/lac/trilinos_vector.h>
 
 DEAL_II_NAMESPACE_OPEN
@@ -27,7 +30,7 @@ namespace TrilinosWrappers
   // MPI::Vector as this ended up to be the only derived class.
   // Hence, using the class VectorBase is deprecated and we only provide
   // an alias for backward compatibility.
-  using VectorBase = MPI::Vector;
+  typedef MPI::Vector VectorBase DEAL_II_DEPRECATED;
 }
 #endif
 
index 28564d6b873757aa55c5c8b1959c7f9083836430..f0dfb4f38e425936c06ea098594f117997ae415c 100644 (file)
@@ -749,15 +749,15 @@ namespace TrilinosWrappers
   }
 
   void
-  PreconditionIdentity::vmult(VectorBase       &dst,
-                              const VectorBase &src) const
+  PreconditionIdentity::vmult(MPI::Vector       &dst,
+                              const MPI::Vector &src) const
   {
     dst = src;
   }
 
   void
-  PreconditionIdentity::Tvmult(VectorBase       &dst,
-                               const VectorBase &src) const
+  PreconditionIdentity::Tvmult(MPI::Vector       &dst,
+                               const MPI::Vector &src) const
   {
     dst = src;
   }
index 297d6bbead609982391017dfd4e4da6ebb51b034..672398447f50f12a06799b3b1951bb2ef2e8e93d 100644 (file)
@@ -19,7 +19,7 @@
 
 #  include <deal.II/base/conditional_ostream.h>
 #  include <deal.II/lac/trilinos_sparse_matrix.h>
-#  include <deal.II/lac/trilinos_vector_base.h>
+#  include <deal.II/lac/trilinos_vector.h>
 #  include <deal.II/lac/trilinos_precondition.h>
 
 DEAL_II_DISABLE_EXTRA_DIAGNOSTICS

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.