16 #ifndef dealii_petsc_vector_h 17 # define dealii_petsc_vector_h 20 # include <deal.II/base/config.h> 22 # ifdef DEAL_II_WITH_PETSC 24 # include <deal.II/base/index_set.h> 25 # include <deal.II/base/subscriptor.h> 27 # include <deal.II/lac/exceptions.h> 28 # include <deal.II/lac/petsc_vector_base.h> 29 # include <deal.II/lac/vector.h> 30 # include <deal.II/lac/vector_operation.h> 31 # include <deal.II/lac/vector_type_traits.h> 33 DEAL_II_NAMESPACE_OPEN
202 template <
typename Number>
204 const ::Vector<Number> &v,
297 template <
typename number>
321 const bool omit_zeroing_entries =
false);
333 reinit(
const Vector &v,
const bool omit_zeroing_entries =
false);
376 print(std::ostream & out,
377 const unsigned int precision = 3,
378 const bool scientific =
true,
379 const bool across =
true)
const;
441 template <
typename number>
443 const ::Vector<number> &v,
464 template <
typename number>
496 for (size_type i = 0; i < v.size(); ++i)
506 inline const MPI_Comm &
518 namespace LinearOperatorImplementation
531 template <
typename Matrix>
533 reinit_range_vector(
const Matrix & matrix,
537 v.
reinit(matrix.locally_owned_range_indices(),
538 matrix.get_mpi_communicator());
541 template <
typename Matrix>
543 reinit_domain_vector(
const Matrix & matrix,
547 v.
reinit(matrix.locally_owned_domain_indices(),
548 matrix.get_mpi_communicator());
568 DEAL_II_NAMESPACE_CLOSE
570 # endif // DEAL_II_WITH_PETSC
virtual void clear() override
VectorBase & operator=(const PetscScalar s)
unsigned long long int global_dof_index
void compress(const VectorOperation::values operation)
#define Assert(cond, exc)
static::ExceptionBase & ExcDimensionMismatch(std::size_t arg1, std::size_t arg2)
types::global_dof_index size_type
void print(std::ostream &out, const unsigned int precision=3, const bool scientific=true, const bool across=true) const
Vector & operator=(const Vector &v)
size_type local_size() const
const MPI_Comm & get_mpi_communicator() const override
void reinit(const MPI_Comm &communicator, const size_type N, const size_type local_size, const bool omit_zeroing_entries=false)
virtual void create_vector(const size_type n, const size_type local_size)
void swap(Vector &u, Vector &v)