From: Lei Qiao Date: Wed, 1 Jul 2015 01:34:39 +0000 (-0500) Subject: fix bug introduce by commit 594dc87 in function GridRefinement::refine_and_coarsen_fi... X-Git-Tag: v8.3.0-rc1~72^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b649b7b7b980badad0497d15d177934d4ae65f7e;p=dealii.git fix bug introduce by commit 594dc87 in function GridRefinement::refine_and_coarsen_fixed_number() --- diff --git a/source/grid/grid_refinement.cc b/source/grid/grid_refinement.cc index 8b05b2455f..c81faed8e2 100644 --- a/source/grid/grid_refinement.cc +++ b/source/grid/grid_refinement.cc @@ -333,7 +333,7 @@ GridRefinement::adjust_refine_and_coarsen_number_fraction (const unsigned int c else if (static_cast (current_n_cells + refine_cells * cell_increase_on_refine - - coarsen_cells / cell_decrease_on_coarsen) + - coarsen_cells * cell_decrease_on_coarsen) > max_n_cells) { @@ -351,7 +351,7 @@ GridRefinement::adjust_refine_and_coarsen_number_fraction (const unsigned int c (max_n_cells - current_n_cells) / (refine_cells * cell_increase_on_refine - - coarsen_cells / cell_decrease_on_coarsen); + - coarsen_cells * cell_decrease_on_coarsen); adjusted_fractions.first = alpha * top_fraction; adjusted_fractions.second = alpha * bottom_fraction;