16#ifndef dealii_petsc_vector_h
17# define dealii_petsc_vector_h
22# ifdef DEAL_II_WITH_PETSC
200 template <
typename Number>
202 const ::Vector<Number> &v,
300 template <
typename number>
324 const bool omit_zeroing_entries =
false);
336 reinit(
const Vector &v,
const bool omit_zeroing_entries =
false);
366 const std::shared_ptr<const Utilities::MPI::Partitioner> &partitioner);
387 print(std::ostream & out,
388 const unsigned int precision = 3,
389 const bool scientific =
true,
390 const bool across =
true)
const;
451 template <
typename number>
453 const ::Vector<number> &v,
455 : communicator(communicator)
474 template <
typename number>
528 namespace LinearOperatorImplementation
541 template <
typename Matrix>
547 v.
reinit(matrix.locally_owned_range_indices(),
548 matrix.get_mpi_communicator());
551 template <
typename Matrix>
557 v.
reinit(matrix.locally_owned_domain_indices(),
558 matrix.get_mpi_communicator());
types::global_dof_index size_type
Vector(const MPI_Comm &communicator, const ::Vector< Number > &v, const size_type locally_owned_size)
virtual void create_vector(const size_type n, const size_type locally_owned_size)
void print(std::ostream &out, const unsigned int precision=3, const bool scientific=true, const bool across=true) const
const MPI_Comm & get_mpi_communicator() const override
virtual void clear() override
void reinit(const MPI_Comm &communicator, const size_type N, const size_type locally_owned_size, const bool omit_zeroing_entries=false)
Vector & operator=(const ::Vector< number > &v)
Vector & operator=(const Vector &v)
Vector & operator=(const PetscScalar s)
void swap(Vector &u, Vector &v)
size_type local_size() const
void compress(const VectorOperation::values operation)
size_type locally_owned_size() const
VectorBase & operator=(const VectorBase &)=delete
static void reinit_domain_vector(const Matrix &matrix, PETScWrappers::MPI::Vector &v, bool)
static void reinit_range_vector(const Matrix &matrix, PETScWrappers::MPI::Vector &v, bool)
#define DEAL_II_DEPRECATED
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
#define Assert(cond, exc)
static ::ExceptionBase & ExcDimensionMismatch(std::size_t arg1, std::size_t arg2)
unsigned int global_dof_index