18 #ifdef DEAL_II_WITH_TRILINOS
51 for (
unsigned int i = 0; i < this->
n_blocks(); ++i)
54 this->collect_sizes();
72 const MPI_Comm communicator,
73 const bool omit_zeroing_entries)
80 for (
unsigned int i = 0; i < this->
n_blocks(); ++i)
83 omit_zeroing_entries);
93 const std::vector<IndexSet> &ghost_values,
94 const MPI_Comm communicator,
95 const bool vector_writable)
104 for (
unsigned int i = 0; i < this->
n_blocks(); ++i)
123 for (
unsigned int i = 0; i < this->
n_blocks(); ++i)
125 omit_zeroing_entries,
157 for (
unsigned int i = 0; i < this->
n_blocks(); ++i)
168 const unsigned int precision,
169 const bool scientific,
170 const bool across)
const
172 for (
unsigned int i = 0; i < this->
n_blocks(); ++i)
175 out <<
'C' << i <<
':';
177 out <<
"Component " << i << std::endl;
178 this->
components[i].print(out, precision, scientific, across);
void reinit(const unsigned int n_blocks, const size_type n_elements_per_block)
BlockType & block(const unsigned int row, const unsigned int column)
unsigned int n_block_rows() const
unsigned int n_block_cols() const
const BlockIndices & get_block_indices() const
unsigned int n_blocks() const
BlockVectorBase & operator=(const value_type s)
std::vector< MPI::Vector > components
BlockIndices block_indices
BlockType & block(const unsigned int i)
void print(std::ostream &out, const unsigned int precision=3, const bool scientific=true, const bool across=true) const
BaseClass::size_type size_type
BlockVector & operator=(const value_type s)
void reinit(const std::vector< IndexSet > ¶llel_partitioning, const MPI_Comm communicator=MPI_COMM_WORLD, const bool omit_zeroing_entries=false)
void import_nonlocal_data_for_fe(const TrilinosWrappers::BlockSparseMatrix &m, const BlockVector &v)
BaseClass::value_type value_type
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
static ::ExceptionBase & ExcDimensionMismatch(std::size_t arg1, std::size_t arg2)
#define Assert(cond, exc)
#define AssertDimension(dim1, dim2)
void swap(BlockVector &u, BlockVector &v)