]> https://gitweb.dealii.org/ - dealii.git/commitdiff
threshold in refine_and_coarsen... may now be zero
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Sun, 23 Aug 1998 15:11:14 +0000 (15:11 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Sun, 23 Aug 1998 15:11:14 +0000 (15:11 +0000)
git-svn-id: https://svn.dealii.org/trunk@508 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/tria.cc

index 22fb6df9595bc73e6346aa074968de3228a10a27..39e0011e3b7776d942044d5b6c015ba09501566f 100644 (file)
@@ -2006,8 +2006,8 @@ void Triangulation<dim>::refine_and_coarsen_fixed_number (const dVector &criteri
                                                          const double   bottom_fraction) {
                                   // correct number of cells is
                                   // checked in #refine#
-  Assert ((top_fraction>0) && (top_fraction<=1), ExcInvalidParameterValue());
-  Assert ((bottom_fraction>0) && (bottom_fraction<=1), ExcInvalidParameterValue());
+  Assert ((top_fraction>=0) && (top_fraction<=1), ExcInvalidParameterValue());
+  Assert ((bottom_fraction>=0) && (bottom_fraction<=1), ExcInvalidParameterValue());
   Assert (top_fraction+bottom_fraction <= 1, ExcInvalidParameterValue());
                                   // refine at least one cell; algorithmic
                                   // simplification
@@ -2045,8 +2045,8 @@ Triangulation<dim>::refine_and_coarsen_fixed_fraction (const dVector &criteria,
                                                       const double   bottom_fraction) {
                                   // correct number of cells is
                                   // checked in #refine#
-  Assert ((top_fraction>0) && (top_fraction<=1), ExcInvalidParameterValue());
-  Assert ((bottom_fraction>0) && (bottom_fraction<=1), ExcInvalidParameterValue());
+  Assert ((top_fraction>=0) && (top_fraction<=1), ExcInvalidParameterValue());
+  Assert ((bottom_fraction>=0) && (bottom_fraction<=1), ExcInvalidParameterValue());
   Assert (top_fraction+bottom_fraction <= 1, ExcInvalidParameterValue());
 
                                   // let tmp be the cellwise square of the

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.