From: Denis Davydov Date: Tue, 17 Oct 2017 06:53:57 +0000 (+0200) Subject: add MGInterfaceOperator::initialize_dof_vector() X-Git-Tag: v9.0.0-rc1~936^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2433d96ed4f1d1a2f5356e622a4c921ca762955e;p=dealii.git add MGInterfaceOperator::initialize_dof_vector() --- diff --git a/include/deal.II/matrix_free/operators.h b/include/deal.II/matrix_free/operators.h index 54730cc01a..2baef6758e 100644 --- a/include/deal.II/matrix_free/operators.h +++ b/include/deal.II/matrix_free/operators.h @@ -516,6 +516,13 @@ namespace MatrixFreeOperators void Tvmult (VectorType &dst, const VectorType &src) const; + /** + * A wrapper for initialize_dof_vector() of OperatorType object. + */ + template + void initialize_dof_vector (VectorType &vec) const; + + private: /** * Const pointer to the operator class. @@ -1493,6 +1500,19 @@ namespace MatrixFreeOperators + template + template + void + MGInterfaceOperator::initialize_dof_vector (VectorType &vec) const + { + Assert(mf_base_operator != nullptr, + ExcNotInitialized()); + + mf_base_operator->initialize_dof_vector(vec); + } + + + //-----------------------------MassOperator---------------------------------- template