From 2433d96ed4f1d1a2f5356e622a4c921ca762955e Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Tue, 17 Oct 2017 08:53:57 +0200 Subject: [PATCH] add MGInterfaceOperator::initialize_dof_vector() --- include/deal.II/matrix_free/operators.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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 -- 2.39.5