VectorBase &
VectorBase::operator = (const TrilinosScalar s)
{
+ // if we have ghost values, do not allow
+ // writing to this vector at all.
+ Assert (!has_ghost_elements(), ExcGhostsPresent());
Assert (numbers::is_finite(s), ExcNumberNotFinite());
VectorBase::set (const std::vector<unsigned int> &indices,
const std::vector<TrilinosScalar> &values)
{
+ // if we have ghost values, do not allow
+ // writing to this vector at all.
+ Assert (!has_ghost_elements(), ExcGhostsPresent());
+
Assert (indices.size() == values.size(),
ExcDimensionMismatch(indices.size(),values.size()));
VectorBase::set (const std::vector<unsigned int> &indices,
const ::dealii::Vector<TrilinosScalar> &values)
{
+ // if we have ghost values, do not allow
+ // writing to this vector at all.
+ Assert (!has_ghost_elements(), ExcGhostsPresent());
+
Assert (indices.size() == values.size(),
ExcDimensionMismatch(indices.size(),values.size()));
void
VectorBase::add (const TrilinosScalar s)
{
+ // if we have ghost values, do not allow
+ // writing to this vector at all.
+ Assert (!has_ghost_elements(), ExcGhostsPresent());
Assert (numbers::is_finite(s), ExcNumberNotFinite());
unsigned int n_local = local_size();
VectorBase::add (const TrilinosScalar a,
const VectorBase &v)
{
+ // if we have ghost values, do not allow
+ // writing to this vector at all.
+ Assert (!has_ghost_elements(), ExcGhostsPresent());
Assert (local_size() == v.local_size(),
ExcDimensionMismatch(local_size(), v.local_size()));
const TrilinosScalar b,
const VectorBase &w)
{
+ // if we have ghost values, do not allow
+ // writing to this vector at all.
+ Assert (!has_ghost_elements(), ExcGhostsPresent());
Assert (local_size() == v.local_size(),
ExcDimensionMismatch(local_size(), v.local_size()));
Assert (local_size() == w.local_size(),
VectorBase::sadd (const TrilinosScalar s,
const VectorBase &v)
{
+ // if we have ghost values, do not allow
+ // writing to this vector at all.
+ Assert (!has_ghost_elements(), ExcGhostsPresent());
Assert (local_size() == v.local_size(),
ExcDimensionMismatch(local_size(), v.local_size()));
const TrilinosScalar a,
const VectorBase &v)
{
+ // if we have ghost values, do not allow
+ // writing to this vector at all.
+ Assert (!has_ghost_elements(), ExcGhostsPresent());
Assert (local_size() == v.local_size(),
ExcDimensionMismatch(local_size(), v.local_size()));
const TrilinosScalar b,
const VectorBase &w)
{
+ // if we have ghost values, do not allow
+ // writing to this vector at all.
+ Assert (!has_ghost_elements(), ExcGhostsPresent());
Assert (local_size() == v.local_size(),
ExcDimensionMismatch(local_size(), v.local_size()));
Assert (local_size() == w.local_size(),
const TrilinosScalar c,
const VectorBase &x)
{
+ // if we have ghost values, do not allow
+ // writing to this vector at all.
+ Assert (!has_ghost_elements(), ExcGhostsPresent());
Assert (local_size() == v.local_size(),
ExcDimensionMismatch(local_size(), v.local_size()));
Assert (local_size() == w.local_size(),
void
VectorBase::scale (const VectorBase &factors)
{
+ // if we have ghost values, do not allow
+ // writing to this vector at all.
+ Assert (!has_ghost_elements(), ExcGhostsPresent());
Assert (local_size() == factors.local_size(),
ExcDimensionMismatch(local_size(), factors.local_size()));
VectorBase::equ (const TrilinosScalar a,
const VectorBase &v)
{
+ // if we have ghost values, do not allow
+ // writing to this vector at all.
+ Assert (!has_ghost_elements(), ExcGhostsPresent());
Assert (numbers::is_finite(a), ExcNumberNotFinite());
// If we don't have the same map, copy.
const TrilinosScalar b,
const VectorBase &w)
{
+ // if we have ghost values, do not allow
+ // writing to this vector at all.
+ Assert (!has_ghost_elements(), ExcGhostsPresent());
Assert (v.local_size() == w.local_size(),
ExcDimensionMismatch (v.local_size(), w.local_size()));