/**
* Initialize a Vector from a PETSc Vec object. Note that we do not copy
- * the vector and we do not attain ownership, so we do not destroy the
+ * the vector and we do not obtain ownership, so we do not destroy the
* PETSc object in the destructor.
*/
explicit VectorBase (const Vec &v);
* it got created by this class and determines if it gets destructed in
* the destructor.
*/
- bool attained_ownership;
+ bool obtained_ownership;
/**
* Collective set or add operation: This function is invoked by the
vector (nullptr),
ghosted(false),
last_action (::dealii::VectorOperation::unknown),
- attained_ownership(true)
+ obtained_ownership(true)
{
Assert( MultithreadInfo::is_running_single_threaded(),
ExcMessage("PETSc does not support multi-threaded access, set "
ghosted(v.ghosted),
ghost_indices(v.ghost_indices),
last_action (::dealii::VectorOperation::unknown),
- attained_ownership(true)
+ obtained_ownership(true)
{
Assert( MultithreadInfo::is_running_single_threaded(),
ExcMessage("PETSc does not support multi-threaded access, set "
vector(v),
ghosted(false),
last_action (::dealii::VectorOperation::unknown),
- attained_ownership(false)
+ obtained_ownership(false)
{
Assert( MultithreadInfo::is_running_single_threaded(),
ExcMessage("PETSc does not support multi-threaded access, set "
VectorBase::~VectorBase ()
{
- if (attained_ownership)
+ if (obtained_ownership)
{
const PetscErrorCode ierr = VecDestroy (&vector);
AssertNothrow (ierr == 0, ExcPETScError(ierr));
void
VectorBase::clear ()
{
- if (attained_ownership)
+ if (obtained_ownership)
{
const PetscErrorCode ierr = VecDestroy (&vector);
AssertThrow (ierr == 0, ExcPETScError(ierr));
ghosted = false;
ghost_indices.clear ();
last_action = ::dealii::VectorOperation::unknown;
- attained_ownership = true;
+ obtained_ownership = true;
}