Output Example
t3e> setenv PETSC_DIR /usr/local/lib/PETSC ; setenv PETSC_ARCH t3e
t3e> make BOPT=O heat_petsc
t3e> mpirun –np 3 ./heat_petsc –ksp_type cg –m 4 –n 4 –ksp_monitor
–sles_view –view_sol –log_summary –options_table –options_left
0 KSP Residual norm 1.242025913946e+00
6 KSP Residual norm 8.610435306905e–04
7 KSP Residual norm 2.704366376622e–04
maximum iterations=10000, initial guess is zero
tolerances: relative=0.0004, absolute=1e–50, divergence=10000
block Jacobi: number of blocks = 3
tolerances: relative=1e–05, absolute=1e–50,
ILU: max fill ratio allocated 1
ILU: tolerance for zero pivot 1e–12
Solution Grid (without boundary conditions):
0.199977 0.199891 0.199995 0.199985
0.400010 0.400072 0.400007 0.399864
0.600126 0.600078 0.599905 0.599989
0.800019 0.799936 0.799993 0.800014
Norm of error 0.000269002 iterations 7
Time (sec): 7.033e–02 1.01369 6.971e–02
Objects: 4.100e+01 1.00000 4.100e+01
Flops: 1.071e+03 1.28571 9.370e+02 2.811e+03
Flops/sec: 1.523e+04 1.26883 1.343e+04 4.030e+04