|
Reference documentation for deal.II version 9.2.0
|
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\)
\(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\)
\(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\)
\(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Go to the documentation of this file.
16 #ifndef dealii_trilinos_tpetra_vector_h
17 #define dealii_trilinos_tpetra_vector_h
22 #if defined(DEAL_II_TRILINOS_WITH_TPETRA) && defined(DEAL_II_WITH_MPI)
32 # include <Teuchos_Comm.hpp>
33 # include <Teuchos_OrdinalTraits.hpp>
34 # include <Tpetra_Core.hpp>
35 # include <Tpetra_Vector.hpp>
36 # include <Tpetra_Version.hpp>
47 template <
typename Number>
48 class ReadWriteVector;
58 namespace TpetraWrappers
83 template <
typename Number>
120 const bool omit_zeroing_entries =
false);
128 const bool omit_zeroing_entries =
false)
override;
157 std::shared_ptr<const CommunicationPatternBase> communication_pattern =
158 std::shared_ptr<const CommunicationPatternBase>())
override;
195 add(
const Number a)
override;
309 size()
const override;
335 const Tpetra::Vector<Number, int, types::global_dof_index> &
342 Tpetra::Vector<Number, int, types::global_dof_index> &
349 print(std::ostream & out,
350 const unsigned int precision = 3,
351 const bool scientific =
true,
352 const bool across =
true)
const override;
380 <<
"An error with error number " << arg1
381 <<
" occurred while calling a Trilinos function");
396 std::unique_ptr<Tpetra::Vector<Number, int, types::global_dof_index>>
408 std::shared_ptr<const TpetraWrappers::CommunicationPattern>
413 template <
typename Number>
426 template <
typename Number>
virtual Vector & operator*=(const Number factor) override
typename VectorSpaceVector< Number >::size_type size_type
virtual Number operator*(const VectorSpaceVector< Number > &V) const override
bool has_ghost_elements() const
virtual ::IndexSet locally_owned_elements() const override
virtual void scale(const VectorSpaceVector< Number > &scaling_factors) override
virtual Vector & operator/=(const Number factor) override
static ::ExceptionBase & ExcVectorTypeNotCompatible()
typename numbers::NumberTraits< Number >::real_type real_type
MPI_Comm get_mpi_communicator() const
virtual void print(std::ostream &out, const unsigned int precision=3, const bool scientific=true, const bool across=true) const override
virtual LinearAlgebra::VectorSpaceVector< Number >::real_type l1_norm() const override
virtual void equ(const Number a, const VectorSpaceVector< Number > &V) override
#define DEAL_II_NAMESPACE_OPEN
SymmetricTensor< 2, dim, Number > b(const Tensor< 2, dim, Number > &F)
std::unique_ptr< Tpetra::Vector< Number, int, types::global_dof_index > > vector
virtual bool all_zero() const override
#define DeclException1(Exception1, type1, outsequence)
const Tpetra::Vector< Number, int, types::global_dof_index > & trilinos_vector() const
virtual Number add_and_dot(const Number a, const VectorSpaceVector< Number > &V, const VectorSpaceVector< Number > &W) override
static ::ExceptionBase & ExcTrilinosError(int arg1)
virtual void sadd(const Number s, const Number a, const VectorSpaceVector< Number > &V) override
virtual std::size_t memory_consumption() const override
virtual Number mean_value() const override
virtual size_type size() const override
std::shared_ptr< const TpetraWrappers::CommunicationPattern > tpetra_comm_pattern
#define DeclException0(Exception0)
void reinit(const IndexSet ¶llel_partitioner, const MPI_Comm &communicator, const bool omit_zeroing_entries=false)
void create_tpetra_comm_pattern(const IndexSet &source_index_set, const MPI_Comm &mpi_comm)
virtual Vector & operator-=(const VectorSpaceVector< Number > &V) override
virtual void add(const Number a) override
virtual LinearAlgebra::VectorSpaceVector< Number >::real_type linfty_norm() const override
Vector & operator=(const Vector &V)
#define DEAL_II_NAMESPACE_CLOSE
::IndexSet source_stored_elements
virtual LinearAlgebra::VectorSpaceVector< Number >::real_type l2_norm() const override
static ::ExceptionBase & ExcDifferentParallelPartitioning()
virtual Vector & operator+=(const VectorSpaceVector< Number > &V) override