changed default for min_coarse_size

This commit is contained in:
ulrikey 2012-05-08 22:00:18 +00:00
parent df01ecf036
commit ca180796c9
3 changed files with 4 additions and 4 deletions

View File

@ -2607,7 +2607,7 @@ HYPRE_ParCSRHybridSetMaxCoarseSize(HYPRE_Solver solver,
/**
* (Optional) Defines the minimal coarse grid size.
* The default is 1.
* The default is 0.
**/
HYPRE_Int
HYPRE_ParCSRHybridSetMinCoarseSize(HYPRE_Solver solver,

View File

@ -118,7 +118,7 @@ hypre_BoomerAMGCreate()
/* setup params */
max_levels = 25;
max_coarse_size = 9;
min_coarse_size = 1;
min_coarse_size = 0;
seq_threshold = 0;
strong_threshold = 0.25;
max_row_sum = 0.9;
@ -687,7 +687,7 @@ hypre_BoomerAMGSetMinCoarseSize( void *data,
return hypre_error_flag;
}
if (min_coarse_size < 1)
if (min_coarse_size < 0)
{
hypre_error_in_arg(2);
return hypre_error_flag;

View File

@ -167,7 +167,7 @@ main( hypre_int argc,
HYPRE_Int smooth_num_levels = 0;
HYPRE_Int smooth_num_sweeps = 1;
HYPRE_Int coarse_threshold = 9;
HYPRE_Int min_coarse_size = 1;
HYPRE_Int min_coarse_size = 0;
HYPRE_Int seq_threshold = 0;
double relax_wt;
double relax_wt_level;