16 #ifndef dealii_trilinos_epetra_vector_h 17 #define dealii_trilinos_epetra_vector_h 20 #include <deal.II/base/config.h> 22 #if defined(DEAL_II_WITH_TRILINOS) && defined(DEAL_II_WITH_MPI) 24 #include <deal.II/base/index_set.h> 25 #include <deal.II/base/subscriptor.h> 26 #include <deal.II/lac/trilinos_epetra_communication_pattern.h> 27 #include <deal.II/lac/vector_operation.h> 28 #include <deal.II/lac/vector_space_vector.h> 29 #include <deal.II/lac/vector_type_traits.h> 33 # include <Epetra_FEVector.h> 35 DEAL_II_NAMESPACE_OPEN
40 template <
typename Number>
41 class ReadWriteVector;
43 namespace EpetraWrappers
76 const MPI_Comm &communicator);
85 const MPI_Comm &communicator,
86 const bool omit_zeroing_entries =
false);
93 const bool omit_zeroing_entries =
false)
override;
118 std::shared_ptr<const CommunicationPatternBase> communication_pattern =
119 std::shared_ptr<const CommunicationPatternBase> ())
override;
150 virtual void add(
const double a)
override;
169 virtual void sadd(
const double s,
const double a,
188 virtual bool all_zero()
const override;
199 virtual double l1_norm()
const override;
205 virtual double l2_norm()
const override;
247 virtual size_type
size()
const override;
281 virtual void print(std::ostream &out,
282 const unsigned int precision=3,
283 const bool scientific=
true,
284 const bool across=
true)
const override;
311 <<
"An error with error number " << arg1
312 <<
" occurred while calling a Trilinos function");
321 const MPI_Comm &mpi_comm);
358 DEAL_II_NAMESPACE_CLOSE
virtual double l1_norm() const override
static ::ExceptionBase & ExcDifferentParallelPartitioning()
virtual bool all_zero() const override
virtual ::IndexSet locally_owned_elements() const override
virtual double l2_norm() const override
virtual size_type size() const override
virtual void scale(const VectorSpaceVector< double > &scaling_factors) override
virtual std::size_t memory_consumption() const override
std::unique_ptr< Epetra_FEVector > vector
virtual void equ(const double a, const VectorSpaceVector< double > &V) override
#define DeclException1(Exception1, type1, outsequence)
void create_epetra_comm_pattern(const IndexSet &source_index_set, const MPI_Comm &mpi_comm)
virtual Vector & operator*=(const double factor) override
#define DeclException0(Exception0)
const Epetra_FEVector & trilinos_vector() const
Vector & operator=(const Vector &V)
static ::ExceptionBase & ExcTrilinosError(int arg1)
static ::ExceptionBase & ExcVectorTypeNotCompatible()
void reinit(const IndexSet ¶llel_partitioner, const MPI_Comm &communicator, const bool omit_zeroing_entries=false)
std::shared_ptr< const CommunicationPattern > epetra_comm_pattern
virtual void sadd(const double s, const double a, const VectorSpaceVector< double > &V) override
virtual Vector & operator+=(const VectorSpaceVector< double > &V) override
virtual Vector & operator/=(const double factor) override
virtual void print(std::ostream &out, const unsigned int precision=3, const bool scientific=true, const bool across=true) const override
virtual double mean_value() const override
virtual Vector & operator-=(const VectorSpaceVector< double > &V) override
bool has_ghost_elements() const
MPI_Comm get_mpi_communicator() const
virtual double operator*(const VectorSpaceVector< double > &V) const override
virtual void add(const double a) override
virtual double linfty_norm() const override
virtual double add_and_dot(const double a, const VectorSpaceVector< double > &V, const VectorSpaceVector< double > &W) override
::IndexSet source_stored_elements