Added iteration count and residual prints to the BoomerAMG solver.
This commit is contained in:
parent
b5ffd1ed56
commit
35d711278c
@ -2125,6 +2125,17 @@ main( hypre_int argc,
|
||||
hypre_FinalizeTiming(time_index);
|
||||
hypre_ClearTiming();
|
||||
|
||||
HYPRE_BoomerAMGGetNumIterations(amg_solver, &num_iterations);
|
||||
HYPRE_BoomerAMGGetFinalRelativeResidualNorm(amg_solver, &final_res_norm);
|
||||
|
||||
if (myid == 0)
|
||||
{
|
||||
hypre_printf("\n");
|
||||
hypre_printf("BoomerAMG Iterations = %d\n", num_iterations);
|
||||
hypre_printf("Final Relative Residual Norm = %e\n", final_res_norm);
|
||||
hypre_printf("\n");
|
||||
}
|
||||
|
||||
#if SECOND_TIME
|
||||
/* run a second time to check for memory leaks */
|
||||
HYPRE_ParVectorSetRandomValues(x, 775);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user