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
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)
types::global_dof_index size_type
BlockIndices block_indices
unsigned int global_dof_index
const BlockIndices & get_block_indices() const
void reinit(const unsigned int n_blocks, const size_type n_elements_per_block)
std::vector< Vector > components
unsigned int n_blocks() const
BlockVector & operator=(const value_type s)
BlockType & block(const unsigned int i)