From 76f8084514c132184d1fd66e4b0771f22ac47670 Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Tue, 8 Mar 2005 17:58:53 +0000 Subject: [PATCH] set_minlevel added git-svn-id: https://svn.dealii.org/trunk@10046 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/multigrid/multigrid.h | 14 +++++++++++++- .../include/multigrid/multigrid.templates.h | 9 +++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/deal.II/deal.II/include/multigrid/multigrid.h b/deal.II/deal.II/include/multigrid/multigrid.h index 1e92fbe06f..0c439e753b 100644 --- a/deal.II/deal.II/include/multigrid/multigrid.h +++ b/deal.II/deal.II/include/multigrid/multigrid.h @@ -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(). */ diff --git a/deal.II/deal.II/include/multigrid/multigrid.templates.h b/deal.II/deal.II/include/multigrid/multigrid.templates.h index c6cc454391..297c114a00 100644 --- a/deal.II/deal.II/include/multigrid/multigrid.templates.h +++ b/deal.II/deal.II/include/multigrid/multigrid.templates.h @@ -75,6 +75,15 @@ Multigrid::set_maxlevel(unsigned int l) } +template +void +Multigrid::set_minlevel(unsigned int l) +{ + Assert (l <= maxlevel, ExcIndexRange(l,minlevel,maxlevel+1)); + minlevel = l; +} + + template void Multigrid::set_cycle(Multigrid::Cycle c) -- 2.39.5