function that takes a scalar as argument.
- PreconditionBlock::size.
- Classes PreconditionedMatrix and PreconditionLACSolver.
- - PETScVectors::MPI::Vector constructors and reinit() variants.
+ - PETScWrappers::VectorBase::update_ghost_values.
+ - PETScWrappers::MPI::Vector constructors and reinit variants.
- SparseMatrixIterators::Accessor and SparseMatrixIterators::Iterator
constructors.
- SparseMatrix::raw_entry.
void ratio (const VectorBase &a,
const VectorBase &b);
- /**
- * Updates the ghost values of this vector. As ghosted vectors are now
- * read-only and assignments from a non-ghosted vector update the ghost
- * values automatically, this method does not need to be called in user
- * code.
- * @deprecated: calling this method is no longer necessary.
- */
- void update_ghost_values() const DEAL_II_DEPRECATED;
-
-
/**
* Prints the PETSc vector object values using PETSc internal vector
* viewer function <tt>VecView</tt>. The default format prints the
AssertThrow (ierr == 0, ExcPETScError(ierr));
if (has_ghost_elements())
- update_ghost_values();
+ {
+ ierr = VecGhostUpdateBegin(vector, INSERT_VALUES, SCATTER_FORWARD);
+ AssertThrow (ierr == 0, ExcPETScError(ierr));
+ ierr = VecGhostUpdateEnd(vector, INSERT_VALUES, SCATTER_FORWARD);
+ AssertThrow (ierr == 0, ExcPETScError(ierr));
+ }
return *this;
}
last_action = action;
}
-
- void
- VectorBase::update_ghost_values() const
- {
- // generate an error for not ghosted
- // vectors
- if (!ghosted)
- AssertThrow (false, ExcInternalError());
-
- int ierr;
-
- ierr = VecGhostUpdateBegin(vector, INSERT_VALUES, SCATTER_FORWARD);
- AssertThrow (ierr == 0, ExcPETScError(ierr));
- ierr = VecGhostUpdateEnd(vector, INSERT_VALUES, SCATTER_FORWARD);
- AssertThrow (ierr == 0, ExcPETScError(ierr));
- }
-
-
-
}
DEAL_II_NAMESPACE_CLOSE
vb.compress(VectorOperation::insert);
vb*=2.0;
v=vb;
- //v.update_ghost_values();
Assert(!vb.has_ghost_elements(), ExcInternalError());
Assert(v.has_ghost_elements(), ExcInternalError());
vb.compress(VectorOperation::insert);
vb*=2.0;
v=vb;
- //v.update_ghost_values();
Assert(!vb.has_ghost_elements(), ExcInternalError());
Assert(v.has_ghost_elements(), ExcInternalError());