]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove ununsed class BoundaryValuesForVelocity 2931/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 7 Aug 2016 18:38:03 +0000 (20:38 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 7 Aug 2016 18:38:03 +0000 (20:38 +0200)
examples/step-56/step-56.cc

index f16cd6c523efaff6f910b15d276f4f53957a2406..6c35189d7764515e66c01bc7d36e9e0d2a483e6d 100644 (file)
@@ -280,38 +280,6 @@ namespace Step56
     return 0;
   }
 
-  // Sadly, we need a separate function for the boundary conditions
-  // to be used in the geometric multigrid. This is because it needs
-  // to be a function with $dim$ components, whereas Solution has
-  // $dim+1$ components. Rather than copying the implementation of
-  // Solution, we forward the calls to Solution::value. For that we need
-  // an instance of the class Solution, which you can find as a private
-  // member.
-  template <int dim>
-  class BoundaryValuesForVelocity : public Function<dim>
-  {
-  public:
-    BoundaryValuesForVelocity () : Function<dim>(dim) {}
-
-    virtual double value (const Point<dim>   &p,
-                          const unsigned int  component = 0) const;
-
-  private:
-    Solution<dim> solution;
-  };
-
-
-  template <int dim>
-  double
-  BoundaryValuesForVelocity<dim>::value (const Point<dim>  &p,
-                                         const unsigned int component) const
-  {
-    Assert (component < this->n_components,
-            ExcIndexRange (component, 0, this->n_components));
-
-    return solution.value(p, component);
-  }
-
 
 
   // @sect3{ASPECT BlockSchurPreconditioner}

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.