void equ (const value_type a, const BlockVectorBase& V,
const value_type b, const BlockVectorBase& W);
+ /**
+ * This function does nothing but is
+ * there for compatibility with the
+ * @p PETScWrappers::Vector class.
+ *
+ * For the PETSc vector wrapper class,
+ * this function updates the ghost
+ * values of the PETSc vector. This
+ * is necessary after any modification
+ * before reading ghost values.
+ *
+ * However, for the implementation of
+ * this class, it is immaterial and thus
+ * an empty function.
+ */
+ void update_ghost_values () const;
+
/**
* Determine an estimate for the
* memory consumption (in bytes)
+template <class VectorType>
+void BlockVectorBase<VectorType>::update_ghost_values () const
+{
+ for (unsigned int i=0; i<n_blocks(); ++i)
+ block(i).update_ghost_values ();
+}
+
+
+
template <class VectorType>
BlockVectorBase<VectorType>&
BlockVectorBase<VectorType>::operator = (const value_type s)
*/
Vector &
operator = (const Vector &V);
+
+ /**
+ * This function does nothing but is
+ * there for compatibility with the
+ * @p PETScWrappers::Vector class.
+ *
+ * For the PETSc vector wrapper class,
+ * this function updates the ghost
+ * values of the PETSc vector. This
+ * is necessary after any modification
+ * before reading ghost values.
+ *
+ * However, for the implementation of
+ * this class, it is immaterial and thus
+ * an empty function.
+ */
+ void update_ghost_values () const;
};
return *this;
}
+
+
+ inline
+ void
+ Vector::update_ghost_values () const
+ {}
+
+
#endif
*/
void ratio (const Vector<Number> &a,
const Vector<Number> &b);
+
+ /**
+ * This function does nothing but is
+ * there for compatibility with the
+ * @p PETScWrappers::Vector class.
+ *
+ * For the PETSc vector wrapper class,
+ * this function updates the ghost
+ * values of the PETSc vector. This
+ * is necessary after any modification
+ * before reading ghost values.
+ *
+ * However, for the implementation of
+ * this class, it is immaterial and thus
+ * an empty function.
+ */
+ void update_ghost_values () const;
//@}
{}
+
+template <typename Number>
+inline
+void
+Vector<Number>::update_ghost_values () const
+{}
+
+
+
// Moved from vector.templates.h as an inline function by Luca Heltai
// on 2009/04/12 to prevent strange compiling errors, after making
// swap virtual.