]> https://gitweb.dealii.org/ - dealii.git/commitdiff
set_minlevel added
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Tue, 8 Mar 2005 17:58:53 +0000 (17:58 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Tue, 8 Mar 2005 17:58:53 +0000 (17:58 +0000)
git-svn-id: https://svn.dealii.org/trunk@10046 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/multigrid/multigrid.h
deal.II/deal.II/include/multigrid/multigrid.templates.h

index 1e92fbe06f46a832ea7807601ef7805371ac70b4..0c439e753bebefddec7947a374d652ab66bb6700 100644 (file)
@@ -171,10 +171,22 @@ class Multigrid : public Subscriptor
                                      * Triangulation; therefore, this
                                      * function will only accept
                                      * arguments smaller than the
-                                     * current #maxlevel.
+                                     * current #maxlevel and not
+                                     * smaller than the current
+                                     * #minlevel.
                                      */
     void set_maxlevel(unsigned int);
 
+                                    /**
+                                     * Set the coarse level for which
+                                     * the multilevel method is
+                                     * performed. By default, this is
+                                     * zero. Accepted are
+                                     * non-negative values smaller
+                                     * than the current #maxlevel.
+                                     */
+    void set_minlevel(unsigned int);
+
                                     /**
                                      * Chance #cycle_type used in cycle().
                                      */
index c6cc4543916ef8a22341d017aa5104b1759bd182..297c114a009c5f0bdd3c4251ca4b41cd40cae9f7 100644 (file)
@@ -75,6 +75,15 @@ Multigrid<VECTOR>::set_maxlevel(unsigned int l)
 }
 
 
+template <class VECTOR>
+void
+Multigrid<VECTOR>::set_minlevel(unsigned int l)
+{
+  Assert (l <= maxlevel, ExcIndexRange(l,minlevel,maxlevel+1));
+  minlevel = l;
+}
+
+
 template <class VECTOR>
 void
 Multigrid<VECTOR>::set_cycle(Multigrid<VECTOR>::Cycle c)

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.