Change value of amgStrongThreshold
Nguyen, Hung V ERDC-ITL-MS
Hung.V.Nguyen at usace.army.mil
Tue May 12 15:02:06 CDT 2009
Hello All,
Is there an option to change a value of amgStrongThreshold at running time
when run hypre via petsc?
Thanks,
-hung
aprun -n 16 ./test_matrix_read -ksp_type cg -ksp_rtol 1.0e-9 -pc_type
hypre -pc_hypre_type boomeramg -pc_hypre_boomeramg_tol 1.0e-9
-pc_hypre_boomeramg_max_iter 10 -ksp_monitor -ksp_view -amgStrongThreshold
0.7
0 KSP Residual norm 5.426061506200e+04
1 KSP Residual norm 1.365341976191e+02
2 KSP Residual norm 2.126401900010e+01
3 KSP Residual norm 1.100477412796e+01
4 KSP Residual norm 4.812547276514e+00
5 KSP Residual norm 2.358447263575e+00
6 KSP Residual norm 2.173357413396e+00
7 KSP Residual norm 1.503960597666e+00
8 KSP Residual norm 1.010547645731e+00
9 KSP Residual norm 8.426472409077e-01
10 KSP Residual norm 6.521097422133e-01
11 KSP Residual norm 4.759600459962e-01
12 KSP Residual norm 3.354705674276e-01
13 KSP Residual norm 2.928909822875e-01
14 KSP Residual norm 2.131100261605e-01
15 KSP Residual norm 1.434520361965e-01
16 KSP Residual norm 1.239990589407e-01
17 KSP Residual norm 9.133339702949e-02
18 KSP Residual norm 7.304670860369e-02
19 KSP Residual norm 5.128919929550e-02
20 KSP Residual norm 4.683930171651e-02
21 KSP Residual norm 3.312636103461e-02
22 KSP Residual norm 2.726223533933e-02
23 KSP Residual norm 1.630121490736e-02
24 KSP Residual norm 1.439580288349e-02
25 KSP Residual norm 9.386850326614e-03
26 KSP Residual norm 7.258934432207e-03
27 KSP Residual norm 5.391044121226e-03
28 KSP Residual norm 4.096261122185e-03
29 KSP Residual norm 3.821143506943e-03
30 KSP Residual norm 2.369891585552e-03
31 KSP Residual norm 1.726252735068e-03
32 KSP Residual norm 1.330257887371e-03
33 KSP Residual norm 9.565460328854e-04
34 KSP Residual norm 8.134595787555e-04
35 KSP Residual norm 5.318612397027e-04
36 KSP Residual norm 4.258345241608e-04
37 KSP Residual norm 3.061218892187e-04
38 KSP Residual norm 2.242561068076e-04
39 KSP Residual norm 1.751430116154e-04
40 KSP Residual norm 1.409093607762e-04
41 KSP Residual norm 1.035510364928e-04
42 KSP Residual norm 8.161852163909e-05
43 KSP Residual norm 4.877043330106e-05
KSP Object:
type: cg
maximum iterations=10000
tolerances: relative=1e-09, absolute=1e-50, divergence=10000
left preconditioning
PC Object:
type: hypre
HYPRE BoomerAMG preconditioning
HYPRE BoomerAMG: Cycle type V
HYPRE BoomerAMG: Maximum number of levels 25
HYPRE BoomerAMG: Maximum number of iterations PER hypre call 10
HYPRE BoomerAMG: Convergence tolerance PER hypre call 1e-09
HYPRE BoomerAMG: Threshold for strong coupling 0.25
HYPRE BoomerAMG: Interpolation truncation factor 0
HYPRE BoomerAMG: Interpolation: max elements per row 0
HYPRE BoomerAMG: Number of levels of aggressive coarsening 0
HYPRE BoomerAMG: Number of paths for aggressive coarsening 1
HYPRE BoomerAMG: Maximum row sums 0.9
HYPRE BoomerAMG: Sweeps down 1
HYPRE BoomerAMG: Sweeps up 1
HYPRE BoomerAMG: Sweeps on coarse 1
HYPRE BoomerAMG: Relax down symmetric-SOR/Jacobi
HYPRE BoomerAMG: Relax up symmetric-SOR/Jacobi
HYPRE BoomerAMG: Relax on coarse Gaussian-elimination
HYPRE BoomerAMG: Relax weight (all) 1
HYPRE BoomerAMG: Outer relax weight (all) 1
HYPRE BoomerAMG: Using CF-relaxation
HYPRE BoomerAMG: Measure type local
HYPRE BoomerAMG: Coarsen type Falgout
HYPRE BoomerAMG: Interpolation type classical
linear system matrix = precond matrix:
Matrix Object:
type=mpiaij, rows=717486, cols=717486
total: nonzeros=14085842, allocated nonzeros=38744244
not using I-node (on process 0) routines
Time in PETSc solver: 163.976773 seconds
The number of iteration = 43
The solution residual error = 4.877043e-05
infinity norm A*x -b 2.831224e-01
2 norm 5.680606e-04
infinity norm 2.154956e-05
1 norm 1.409420e-01
More information about the petsc-users
mailing list