Reference documentation for deal.II version 9.1.0-pre
mg_base.cc
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 1999 - 2017 by the deal.II authors
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 
16 #include <deal.II/lac/block_vector.h>
17 #include <deal.II/lac/la_parallel_block_vector.h>
18 #include <deal.II/lac/la_parallel_vector.h>
19 #include <deal.II/lac/la_vector.h>
20 #include <deal.II/lac/petsc_block_vector.h>
21 #include <deal.II/lac/trilinos_parallel_block_vector.h>
22 #include <deal.II/lac/trilinos_vector.h>
23 #include <deal.II/lac/vector.h>
24 
25 #include <deal.II/multigrid/mg_base.h>
26 
27 
28 DEAL_II_NAMESPACE_OPEN
29 
30 
31 template <typename VectorType>
32 void
33 MGSmootherBase<VectorType>::apply(const unsigned int level,
34  VectorType & u,
35  const VectorType & rhs) const
36 {
37  u = typename VectorType::value_type(0.);
38  smooth(level, u, rhs);
39 }
40 
41 
42 // Explicit instantiations
43 
44 #include "mg_base.inst"
45 
46 DEAL_II_NAMESPACE_CLOSE
virtual void apply(const unsigned int level, VectorType &u, const VectorType &rhs) const
Definition: mg_base.cc:33