16 #include <deal.II/lac/petsc_full_matrix.h> 18 #ifdef DEAL_II_WITH_PETSC 20 # include <deal.II/lac/exceptions.h> 21 # include <deal.II/lac/petsc_compatibility.h> 23 DEAL_II_NAMESPACE_OPEN
54 const PetscErrorCode ierr =
55 MatCreateSeqDense(PETSC_COMM_SELF,
m,
n,
nullptr, &
matrix);
63 static const MPI_Comm communicator = MPI_COMM_SELF;
69 DEAL_II_NAMESPACE_CLOSE
71 #endif // DEAL_II_WITH_PETSC PetscErrorCode destroy_matrix(Mat &matrix)
virtual const MPI_Comm & get_mpi_communicator() const override
types::global_dof_index size_type
#define AssertThrow(cond, exc)
void do_reinit(const size_type m, const size_type n)
void reinit(const size_type m, const size_type n)