DOLFIN-X
DOLFIN-X C++ interface
|
11 #include <Eigen/Dense>
39 MPI_Comm comm, std::array<std::int64_t, 2> range,
40 const Eigen::Array<std::int64_t, Eigen::Dynamic, 1>& ghost_indices,
69 std::int64_t
size()
const;
Norm
Norm types.
Definition: utils.h:34
std::string get_options_prefix() const
Returns the prefix used by PETSc when searching the options database.
Definition: PETScVector.cpp:185
This class represents the distribution index arrays across processes. An index array is a contiguous ...
Definition: IndexMap.h:27
void set_options_prefix(std::string options_prefix)
Sets the prefix used by PETSc when searching the options database.
Definition: PETScVector.cpp:178
std::int64_t size() const
Return global size of vector.
Definition: PETScVector.cpp:75
PETScVector(const common::IndexMap &map)
Create vector.
Definition: PETScVector.cpp:26
void set_from_options()
Call PETSc function VecSetFromOptions on the underlying Vec object.
Definition: PETScVector.cpp:194
PETScVector copy() const
Copy vector.
Definition: PETScVector.cpp:65
It is a simple wrapper for a PETSc vector pointer (Vec). Its main purpose is to assist memory managem...
Definition: PETScVector.h:31
std::int32_t local_size() const
Return local size of vector (belonging to this process)
Definition: PETScVector.cpp:84
PetscReal norm(la::Norm norm_type) const
Return norm of vector.
Definition: PETScVector.cpp:152
MPI_Comm mpi_comm() const
Return MPI communicator.
Definition: PETScVector.cpp:143
void update_ghosts()
Update ghost values (gathers ghost values from the owning processes)
Definition: PETScVector.cpp:123
std::array< std::int64_t, 2 > local_range() const
Return ownership range for process.
Definition: PETScVector.cpp:93
virtual ~PETScVector()
Destructor.
Definition: PETScVector.cpp:50
void apply_ghosts()
Update owned entries owned by this process and which are ghosts on other processes,...
Definition: PETScVector.cpp:103
Vec vec() const
Return pointer to PETSc Vec object.
Definition: PETScVector.cpp:201