Added absolute tolerance convergence check to PCG and BiCGStab.

This commit is contained in:
baker59 2008-05-01 17:30:43 +00:00
parent eca1f9f05c
commit 929a9b6020

View File

@ -2173,6 +2173,7 @@ main( int argc,
HYPRE_PCGSetTwoNorm(pcg_solver, 1);
HYPRE_PCGSetRelChange(pcg_solver, rel_change);
HYPRE_PCGSetPrintLevel(pcg_solver, ioutdat);
HYPRE_PCGSetAbsoluteTol(pcg_solver, atol);
if (solver_id == 1)
{
@ -2773,6 +2774,7 @@ main( int argc,
HYPRE_ParCSRBiCGSTABCreate(MPI_COMM_WORLD, &pcg_solver);
HYPRE_BiCGSTABSetMaxIter(pcg_solver, 1000);
HYPRE_BiCGSTABSetTol(pcg_solver, tol);
HYPRE_BiCGSTABSetAbsoluteTol(pcg_solver, atol);
HYPRE_BiCGSTABSetLogging(pcg_solver, ioutdat);
HYPRE_BiCGSTABSetPrintLevel(pcg_solver, ioutdat);