15#ifndef dealii_trilinos_tpetra_block_vector_h
16#define dealii_trilinos_tpetra_block_vector_h
20#ifdef DEAL_II_TRILINOS_WITH_TPETRA
31template <
typename Number>
37 namespace TpetraWrappers
39 template <
typename Number,
typename MemorySpace>
42 template <
typename Number,
typename MemorySpace>
54 namespace TpetraWrappers
74 template <
typename Number,
typename MemorySpace = ::MemorySpace::Host>
76 TpetraWrappers::Vector<Number, MemorySpace>>
114 const MPI_Comm communicator = MPI_COMM_WORLD);
122 const std::vector<IndexSet> &ghost_values,
124 const bool vector_writable =
false);
173 reinit(
const std::vector<IndexSet> ¶llel_partitioning,
174 const MPI_Comm communicator = MPI_COMM_WORLD,
175 const bool omit_zeroing_entries =
false);
195 reinit(
const std::vector<IndexSet> &partitioning,
196 const std::vector<IndexSet> &ghost_values,
197 const MPI_Comm communicator = MPI_COMM_WORLD,
198 const bool vector_writable =
false);
216 const bool omit_zeroing_entries =
false);
241 const unsigned int precision = 3,
242 const bool scientific =
true,
243 const bool across =
true)
const;
::internal::BlockVectorIterators::Iterator< BlockVectorBase, false > iterator
::internal::BlockVectorIterators::Iterator< BlockVectorBase, true > const_iterator
const value_type * const_pointer
typename BlockType::const_reference const_reference
types::global_dof_index size_type
typename BlockType::value_type value_type
typename BlockType::reference reference
BlockVector< Number, MemorySpace > & operator=(const Number s)
~BlockVector() override=default
BlockVector< Number, MemorySpace > & operator=(const BlockVector< Number, MemorySpace > &v)
typename BaseClass::size_type size_type
typename BaseClass::BlockType BlockType
BlockVector(const BlockVector< Number, MemorySpace > &v)
typename BaseClass::iterator iterator
BlockVector(const size_type num_blocks)
typename BaseClass::pointer pointer
typename BaseClass::reference reference
void reinit(const BlockVector< Number, MemorySpace > &V, const bool omit_zeroing_entries=false)
void reinit(const std::vector< IndexSet > &partitioning, const std::vector< IndexSet > &ghost_values, const MPI_Comm communicator=MPI_COMM_WORLD, const bool vector_writable=false)
void print(std::ostream &out, const unsigned int precision=3, const bool scientific=true, const bool across=true) const
void reinit(const size_type num_blocks)
typename BaseClass::const_pointer const_pointer
typename BaseClass::const_reference const_reference
BlockVector(const std::vector< IndexSet > ¶llel_partitioning, const std::vector< IndexSet > &ghost_values, const MPI_Comm communicator, const bool vector_writable=false)
typename BaseClass::value_type value_type
BlockVector(const std::vector< IndexSet > ¶llel_partitioning, const MPI_Comm communicator=MPI_COMM_WORLD)
void reinit(const std::vector< IndexSet > ¶llel_partitioning, const MPI_Comm communicator=MPI_COMM_WORLD, const bool omit_zeroing_entries=false)
bool has_ghost_elements() const
typename BaseClass::const_iterator const_iterator
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE