From b649b7b7b980badad0497d15d177934d4ae65f7e Mon Sep 17 00:00:00 2001 From: Lei Qiao Date: Tue, 30 Jun 2015 20:34:39 -0500 Subject: [PATCH] fix bug introduce by commit 594dc87 in function GridRefinement::refine_and_coarsen_fixed_number() --- source/grid/grid_refinement.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5