]> https://gitweb.dealii.org/ - dealii.git/commitdiff
add MGInterfaceOperator::initialize_dof_vector() 5260/head
authorDenis Davydov <davydden@gmail.com>
Tue, 17 Oct 2017 06:53:57 +0000 (08:53 +0200)
committerDenis Davydov <davydden@gmail.com>
Tue, 17 Oct 2017 06:53:57 +0000 (08:53 +0200)
include/deal.II/matrix_free/operators.h

index 54730cc01a53d2e4b74fffdf78062401a55f540c..2baef6758e67c641a2925830956d1289c78f408b 100644 (file)
@@ -516,6 +516,13 @@ namespace MatrixFreeOperators
     void Tvmult (VectorType &dst,
                  const VectorType &src) const;
 
+    /**
+     * A wrapper for initialize_dof_vector() of OperatorType object.
+     */
+    template <typename VectorType>
+    void initialize_dof_vector (VectorType &vec) const;
+
+
   private:
     /**
      * Const pointer to the operator class.
@@ -1493,6 +1500,19 @@ namespace MatrixFreeOperators
 
 
 
+  template <typename OperatorType>
+  template <typename VectorType>
+  void
+  MGInterfaceOperator<OperatorType>::initialize_dof_vector (VectorType &vec) const
+  {
+    Assert(mf_base_operator != nullptr,
+           ExcNotInitialized());
+
+    mf_base_operator->initialize_dof_vector(vec);
+  }
+
+
+
   //-----------------------------MassOperator----------------------------------
 
   template <int dim, int fe_degree, int n_q_points_1d, int n_components, typename VectorType>

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.