16 #include <deal.II/lac/petsc_parallel_block_sparse_matrix.h> 18 #ifdef DEAL_II_WITH_PETSC 20 DEAL_II_NAMESPACE_OPEN
38 reinit (
const size_type n_block_rows,
39 const size_type n_block_columns)
51 this->column_block_indices.
reinit (n_block_columns, 0);
64 reinit(
const std::vector<IndexSet> &rows,
65 const std::vector<IndexSet> &cols,
77 std::vector<types::global_dof_index> row_sizes;
82 std::vector<types::global_dof_index> col_sizes;
85 this->column_block_indices.
reinit (col_sizes);
106 reinit(
const std::vector<IndexSet> &sizes,
110 reinit(sizes, sizes, bdsp, com);
121 std::vector< IndexSet >
124 std::vector< IndexSet > index_sets;
127 index_sets.push_back(this->block(0,i).locally_owned_domain_indices());
132 std::vector< IndexSet >
135 std::vector< IndexSet > index_sets;
138 index_sets.push_back(this->block(i,0).locally_owned_range_indices());
146 return block(0,0).get_mpi_communicator();
154 DEAL_II_NAMESPACE_CLOSE
std::vector< IndexSet > locally_owned_domain_indices() const
Subscriptor & operator=(const Subscriptor &)
size_type n_block_cols() const
size_type n_block_rows() const
BaseClass::BlockType BlockType
SparsityPatternType & block(const size_type row, const size_type column)
unsigned int n_block_cols() const
static ::ExceptionBase & ExcMessage(std::string arg1)
std::vector< IndexSet > locally_owned_range_indices() const
void reinit(const TableIndices< N > &new_size, const bool omit_default_initialization=false)
#define Assert(cond, exc)
void reinit(const unsigned int n_blocks, const size_type n_elements_per_block)
BlockSparseMatrix & operator=(const BlockSparseMatrix &)
void reinit(const size_type n_block_rows, const size_type n_block_columns)
BlockType & block(const unsigned int row, const unsigned int column)
Table< 2, SmartPointer< BlockType, BlockMatrixBase< SparseMatrix > > > sub_objects
BlockIndices row_block_indices
unsigned int n_block_rows() const
const MPI_Comm & get_mpi_communicator() const