-
Notifications
You must be signed in to change notification settings - Fork 0
/
petsc-options-inexact
114 lines (109 loc) · 3.45 KB
/
petsc-options-inexact
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#All hypre and fieldsplit params from [Kirby, Mitchell (2017)].
# Global solver params, using the given one as example
-global_ksp_type gmres
#-global_ksp_pc_side right
-global_ksp_norm_type unpreconditioned
#-global_ksp_atol 0
#-global_ksp_rtol 1e-10
#-global_ksp_monitor
# Start with solid solver params.
#-s_ksp_monitor
-s_ksp_type cg
-s_ksp_norm_type unpreconditioned
-s_ksp_atol 0.0
-s_ksp_rtol 1e-1
-s_pc_type hypre
-s_pc_hypre_type boomeramg
-s_pc_hypre_boomeramg_P_max 4
-s_pc_hypre_boomeramg_grid_sweeps_all 1
-s_pc_hypre_boomeramg_agg_nl 1
-s_pc_hypre_boomeramg_agg_num_paths 2
-s_pc_hypre_boomeramg_coarsen_type HMIS
-s_pc_hypre_boomeramg_interp_type ext+i
-s_pc_hypre_boomeramg_no_CF true
# Fluid solver
#-f_ksp_monitor
-f_ksp_type cg
-f_ksp_norm_type unpreconditioned
-f_ksp_atol 0.0
-f_ksp_rtol 1e-2
-f_pc_type hypre
-f_pc_hypre_type boomeramg
-f_pc_hypre_boomeramg_grid_sweeps_all 1
-f_pc_hypre_boomeramg_P_max 4
-f_pc_hypre_boomeramg_agg_nl 1
-f_pc_hypre_boomeramg_agg_num_paths 2
-f_pc_hypre_boomeramg_coarsen_type HMIS
-f_pc_hypre_boomeramg_interp_type ext+i
-f_pc_hypre_boomeramg_no_CF true
# Pressure solver
#-p_ksp_monitor
-p_ksp_type cg
-p_ksp_atol 0.0
-p_ksp_rtol 1e-2
-p_ksp_norm_type unpreconditioned
-p_pc_type hypre
-p_pc_hypre_type boomeramg
-p_pc_hypre_boomeramg_P_max 4
-p_pc_hypre_boomeramg_agg_nl 1
-p_pc_hypre_boomeramg_agg_num_paths 2
-p_pc_hypre_boomeramg_coarsen_type HMIS
-p_pc_hypre_boomeramg_interp_type ext+i
-p_pc_hypre_boomeramg_no_CF true
# Pressure diff solver
-diff_ksp_type preonly
-diff_ksp_atol 0.0
-diff_ksp_rtol 1e-2
-diff_ksp_norm_type unpreconditioned
-diff_pc_type hypre
-diff_pc_hypre_type boomeramg
-diff_pc_hypre_boomeramg_P_max 4
-diff_pc_hypre_boomeramg_agg_nl 1
-diff_pc_hypre_boomeramg_agg_num_paths 2
-diff_pc_hypre_boomeramg_coarsen_type HMIS
-diff_pc_hypre_boomeramg_interp_type ext+i
-diff_pc_hypre_boomeramg_no_CF true
# FP fieldsplit solver
#-fp_ksp_monitor
-fp_ksp_type preonly
#-fp_ksp_norm_type unpreconditioned
-fp_ksp_rtol 1e-2
-fp_ksp_atol 0.0
-fp_ksp_gmres_modifiedgramschmidt
-fp_pc_fieldsplit_type schur
-fp_pc_fieldsplit_schur_fact_type lower
-fp_pc_fieldsplit_schur_precondition selfp
# U solver
-fp_fieldsplit_0_ksp_type cg
#-fp_fieldsplit_0_ksp_monitor
#-fp_fieldsplit_0_ksp_norm_type unpreconditioned
-fp_fieldsplit_0_ksp_rtol 1e-4
-fp_fieldsplit_0_ksp_atol 0.0
-fp_fieldsplit_0_ksp_max_it 10
-fp_fieldsplit_0_pc_type hypre
-fp_fieldsplit_0_pc_hypre_type boomeramg
-fp_fieldsplit_0_pc_hypre_boomeramg_P_max 4
#-fp_fieldsplit_0_pc_hypre_boomeramg_grid_sweeps_all 2
-fp_fieldsplit_0_pc_hypre_boomeramg_agg_nl 1
-fp_fieldsplit_0_pc_hypre_boomeramg_agg_num_paths 2
-fp_fieldsplit_0_pc_hypre_boomeramg_coarsen_type HMIS
-fp_fieldsplit_0_pc_hypre_boomeramg_interp_type ext+i
-fp_fieldsplit_0_pc_hypre_boomeramg_no_CF true
# SCHUR
-fp_fieldsplit_1_ksp_type preonly
#-fp_fieldsplit_1_ksp_gmres_modifiedgramschmidt
#-fp_fieldsplit_1_ksp_monitor
#-fp_fieldsplit_1_ksp_norm_type unpreconditioned
#-fp_fieldsplit_1_ksp_atol 0.0
#-fp_fieldsplit_1_ksp_rtol 1e-2
#-fp_fieldsplit_1_ksp_max_it 100
-fp_fieldsplit_1_pc_type lu
-fp_fieldsplit_1_pc_mat_factor_solver_type mumps
-fp_fieldsplit_1_pc_hypre_type boomeramg
-fp_fieldsplit_1_pc_hypre_boomeramg_grid_sweeps_all 5
-fp_fieldsplit_1_pc_hypre_boomeramg_P_max 4
-fp_fieldsplit_1_pc_hypre_boomeramg_agg_nl 1
-fp_fieldsplit_1_pc_hypre_boomeramg_agg_num_paths 2
-fp_fieldsplit_1_pc_hypre_boomeramg_coarsen_type HMIS
-fp_fieldsplit_1_pc_hypre_boomeramg_interp_type ext+i
-fp_fieldsplit_1_pc_hypre_boomeramg_no_CF true