]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fixed: parallel::distributed::refine_and_coarsen_fixed_fraction() contained a roundin...
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 25 Jan 2012 00:10:07 +0000 (00:10 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 25 Jan 2012 00:10:07 +0000 (00:10 +0000)
git-svn-id: https://svn.dealii.org/trunk@24920 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/news/changes.h
deal.II/source/distributed/grid_refinement.cc

index f7d8e7af3da9f0d9db1bee0c492d18a47afcb133..709653abf4052639dfccd56e6b8371a6fa1d7db8 100644 (file)
@@ -74,6 +74,11 @@ enabled due to a missing include file in file
 
 <ol>
 
+<li> Fixed: parallel::distributed::refine_and_coarsen_fixed_fraction()
+contained a rounding bug that often produced wrong results.
+<br>
+(Timo Heister, 2012/01/24)
+
 <li> Improved: Utilities::break_text_into_lines now also splits the string at \n.
 <br>
 (Timo Heister, 2012/01/17)
index a798e945492a0991225daa31397abdaece80ab40..0210f0c34d69b0292fedcf02a0d3121bb6e693e6 100644 (file)
@@ -710,9 +710,8 @@ namespace parallel
              RefineAndCoarsenFixedFraction::
              master_compute_threshold (locally_owned_indicators,
                                        global_min_and_max,
-                                       static_cast<unsigned int>
-                                       (top_fraction_of_error *
-                                        total_error),
+                                       top_fraction_of_error *
+                                        total_error,
                                        mpi_communicator);
 
                                             // compute bottom
@@ -727,9 +726,8 @@ namespace parallel
                RefineAndCoarsenFixedFraction::
                master_compute_threshold (locally_owned_indicators,
                                          global_min_and_max,
-                                         static_cast<unsigned int>
-                                         ((1-bottom_fraction_of_error) *
-                                          total_error),
+                                         (1-bottom_fraction_of_error) *
+                                          total_error,
                                          mpi_communicator);
            else
              {

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.