16 #include <deal.II/lac/petsc_vector.h> 18 #ifdef DEAL_II_WITH_PETSC 20 #include <deal.II/lac/exceptions.h> 24 DEAL_II_NAMESPACE_OPEN
77 const bool omit_zeroing_entries)
93 #if DEAL_II_PETSC_VERSION_LT(3,2,0) 94 PetscErrorCode ierr = VecDestroy (
vector);
96 PetscErrorCode ierr = VecDestroy (&
vector);
106 if (omit_zeroing_entries ==
false)
114 const bool omit_zeroing_entries)
124 const PetscErrorCode ierr
125 = VecCreateSeq (PETSC_COMM_SELF, n, &
vector);
131 DEAL_II_NAMESPACE_CLOSE
133 #endif // DEAL_II_WITH_PETSC
types::global_dof_index size_type
#define AssertThrow(cond, exc)
Vector & operator=(const Vector &v)
void create_vector(const size_type n)
void reinit(const size_type N, const bool omit_zeroing_entries=false)