16 #include <deal.II/lac/petsc_parallel_block_vector.h>
18 #ifdef DEAL_II_WITH_PETSC
20 # include <deal.II/lac/petsc_block_vector.h>
22 DEAL_II_NAMESPACE_OPEN
24 namespace PETScWrappers
38 for (
unsigned int i=0; i<this->
n_blocks(); ++i)
48 std::vector<size_type> block_sizes (num_blocks, 0);
53 for (
unsigned int i=0; i<this->
n_blocks(); ++i)
62 DEAL_II_NAMESPACE_CLOSE
64 #endif // DEAL_II_WITH_PETSC
void reinit(const unsigned int n_blocks, const MPI_Comm &communicator, const size_type block_size, const size_type local_size, const bool omit_zeroing_entries=false)
BlockIndices block_indices
types::global_dof_index size_type
const BlockIndices & get_block_indices() const
unsigned int global_dof_index
BlockType & block(const unsigned int i)
void reinit(const unsigned int n_blocks, const size_type n_elements_per_block)
unsigned int n_blocks() const
BlockVector & operator=(const value_type s)
std::vector< VectorType > components