]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Switch smooth to pre_smooth and post_smooth.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 9 Apr 1999 15:06:03 +0000 (15:06 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 9 Apr 1999 15:06:03 +0000 (15:06 +0000)
git-svn-id: https://svn.dealii.org/trunk@1116 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/multigrid/mg_smoother.h
deal.II/deal.II/include/numerics/mg_smoother.h

index f09b72b237d921e09a786ef470eb838f0bb3dfee..4e412ee7c590909ad0bdae70bd940ed2e87f5fcf 100644 (file)
@@ -60,9 +60,26 @@ class MGSmoother :  public Subscriptor
                                      * at the end of your derived function,
                                      * or another function doing similar
                                      * things.
+                                     *
+                                     * This function is responsible for the
+                                     * presmoothing, postsmoothing is done
+                                     * by another function, which, however,
+                                     * calls this function if not overloaded.
+                                     */
+    virtual void pre_smooth (const unsigned int  level,
+                            Vector<float>      &u) const = 0;
+
+                                    /**
+                                     * Postsmoothing; the same applies as for
+                                     * the presmoothing function. If you
+                                     * want pre- and postsmoothing to do the
+                                     * same operations, you may want to not
+                                     * overload this function, since its
+                                     * default implementation simply calls
+                                     * #pre_smooth#.
                                      */
-    virtual void smooth (const unsigned int  level,
-                        Vector<float>      &u) const = 0;
+    virtual void post_smooth (const unsigned int  level,
+                             Vector<float>      &u) const;
 
                                     /**
                                      * Reset the values of the degrees of
index f09b72b237d921e09a786ef470eb838f0bb3dfee..4e412ee7c590909ad0bdae70bd940ed2e87f5fcf 100644 (file)
@@ -60,9 +60,26 @@ class MGSmoother :  public Subscriptor
                                      * at the end of your derived function,
                                      * or another function doing similar
                                      * things.
+                                     *
+                                     * This function is responsible for the
+                                     * presmoothing, postsmoothing is done
+                                     * by another function, which, however,
+                                     * calls this function if not overloaded.
+                                     */
+    virtual void pre_smooth (const unsigned int  level,
+                            Vector<float>      &u) const = 0;
+
+                                    /**
+                                     * Postsmoothing; the same applies as for
+                                     * the presmoothing function. If you
+                                     * want pre- and postsmoothing to do the
+                                     * same operations, you may want to not
+                                     * overload this function, since its
+                                     * default implementation simply calls
+                                     * #pre_smooth#.
                                      */
-    virtual void smooth (const unsigned int  level,
-                        Vector<float>      &u) const = 0;
+    virtual void post_smooth (const unsigned int  level,
+                             Vector<float>      &u) const;
 
                                     /**
                                      * Reset the values of the degrees of

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.