# 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>
/**
* 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
/**
* 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
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"));
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"));
* 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
* Make the reference class a friend.
*/
friend class internal::VectorReference;
- friend class Vector;
- friend class MPI::Vector;
};
#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
// 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
}
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;
}