fixed a potentially uninitialized variable

This commit is contained in:
ulrikey 2013-01-15 15:27:23 +00:00
parent 23df99bdbb
commit f3465a64f7

View File

@ -453,8 +453,8 @@ hypre_BoomerAMGSetup( void *amg_vdata,
}
if (smooth_num_levels && smoother)
{
if (smooth_num_levels > num_levels-1)
smooth_num_levels = num_levels -1;
if (smooth_num_levels > old_num_levels-1)
smooth_num_levels = old_num_levels -1;
if (hypre_ParAMGDataSmoothType(amg_data) == 7)
{
for (i=0; i < smooth_num_levels; i++)