16#ifndef dealii_trilinos_tpetra_vector_h
17#define dealii_trilinos_tpetra_vector_h
22#ifdef DEAL_II_TRILINOS_WITH_TPETRA
33# include <Teuchos_Comm.hpp>
34# include <Teuchos_OrdinalTraits.hpp>
35# include <Tpetra_Core.hpp>
36# include <Tpetra_Vector.hpp>
37# include <Tpetra_Version.hpp>
48template <
typename Number>
52# ifdef HAVE_TPETRA_INST_FLOAT
58# ifdef HAVE_TPETRA_INST_DOUBLE
64# ifdef DEAL_II_WITH_COMPLEX_VALUES
65# ifdef HAVE_TPETRA_INST_COMPLEX_FLOAT
71# ifdef HAVE_TPETRA_INST_COMPLEX_DOUBLE
82 template <
typename Number>
83 class ReadWriteVector;
93 namespace TpetraWrappers
115 template <
typename Number>
152 const bool omit_zeroing_entries =
false);
160 const bool omit_zeroing_entries =
false)
override;
189 std::shared_ptr<const Utilities::MPI::CommunicationPatternBase>
190 communication_pattern = {})
override;
195 DEAL_II_DEPRECATED_EARLY
199 std::shared_ptr<const Utilities::MPI::CommunicationPatternBase>
200 communication_pattern = {})
override
240 add(
const Number a)
override;
387 const Tpetra::Vector<Number, int, types::signed_global_dof_index> &
394 Tpetra::Vector<Number, int, types::signed_global_dof_index> &
402 const unsigned int precision = 3,
403 const bool scientific =
true,
404 const bool across =
true)
const override;
432 <<
"An error with error number " << arg1
433 <<
" occurred while calling a Trilinos function");
449 Tpetra::Vector<Number, int, types::signed_global_dof_index>>
461 std::shared_ptr<const TpetraWrappers::CommunicationPattern>
466 template <
typename Number>
479template <
typename Number>
void create_tpetra_comm_pattern(const IndexSet &source_index_set, const MPI_Comm mpi_comm)
bool has_ghost_elements() const
virtual void add(const Number a) override
virtual size_type size() const override
virtual Vector & operator=(const Number s) override
Tpetra::Vector< Number, int, types::signed_global_dof_index > & trilinos_vector()
virtual Number operator*(const VectorSpaceVector< Number > &V) const override
std::shared_ptr< const TpetraWrappers::CommunicationPattern > tpetra_comm_pattern
const Tpetra::Vector< Number, int, types::signed_global_dof_index > & trilinos_vector() const
MPI_Comm get_mpi_communicator() const
typename VectorSpaceVector< Number >::size_type size_type
virtual LinearAlgebra::VectorSpaceVector< Number >::real_type l1_norm() const override
virtual void print(std::ostream &out, const unsigned int precision=3, const bool scientific=true, const bool across=true) const override
virtual void add(const Number a, const VectorSpaceVector< Number > &V, const Number b, const VectorSpaceVector< Number > &W) override
virtual void add(const Number a, const VectorSpaceVector< Number > &V) override
virtual Number mean_value() const override
size_type locally_owned_size() const
void reinit(const IndexSet ¶llel_partitioner, const MPI_Comm communicator, const bool omit_zeroing_entries=false)
virtual void sadd(const Number s, const Number a, const VectorSpaceVector< Number > &V) override
virtual Vector & operator-=(const VectorSpaceVector< Number > &V) override
virtual ::IndexSet locally_owned_elements() const override
virtual void reinit(const VectorSpaceVector< Number > &V, const bool omit_zeroing_entries=false) override
virtual void scale(const VectorSpaceVector< Number > &scaling_factors) override
virtual LinearAlgebra::VectorSpaceVector< Number >::real_type linfty_norm() const override
virtual void equ(const Number a, const VectorSpaceVector< Number > &V) override
std::unique_ptr< Tpetra::Vector< Number, int, types::signed_global_dof_index > > vector
virtual Number add_and_dot(const Number a, const VectorSpaceVector< Number > &V, const VectorSpaceVector< Number > &W) override
virtual LinearAlgebra::VectorSpaceVector< Number >::real_type l2_norm() const override
virtual Vector & operator*=(const Number factor) override
virtual Vector & operator+=(const VectorSpaceVector< Number > &V) override
Vector(const IndexSet ¶llel_partitioner, const MPI_Comm communicator)
virtual void import_elements(const ReadWriteVector< Number > &V, VectorOperation::values operation, std::shared_ptr< const Utilities::MPI::CommunicationPatternBase > communication_pattern={}) override
Vector & operator=(const Vector &V)
virtual std::size_t memory_consumption() const override
::IndexSet source_stored_elements
virtual bool all_zero() const override
virtual Vector & operator/=(const Number factor) override
typename numbers::NumberTraits< Number >::real_type real_type
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
#define DeclException0(Exception0)
static ::ExceptionBase & ExcTrilinosError(int arg1)
static ::ExceptionBase & ExcDifferentParallelPartitioning()
#define DeclException1(Exception1, type1, outsequence)
static ::ExceptionBase & ExcVectorTypeNotCompatible()