Skip to content

Commit afab537

Browse files
committed
Fix deprecation warnings
[ci skip]
1 parent 2cb676e commit afab537

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

examples/hpddm/diffusion-hpddm-2d-PETSc.edp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Rb[0] = 1;
4646
// all in one; see at the end of the script the meaning of the parameters
4747
set(A, sparams = " -pc_hpddm_levels_1_sub_pc_type cholesky -pc_hpddm_levels_1_sub_pc_factor_mat_solver_type mumps -pc_hpddm_has_neumann " +
4848
" -pc_hpddm_define_subdomains -pc_hpddm_levels_1_pc_asm_type basic -pc_hpddm_coarse_correction additive " +
49-
" -pc_hpddm_levels_1_sub_mat_mumps_cntl_4 0.1 -pc_hpddm_levels_1_eps_use_inertia -pc_hpddm_levels_1_eps_threshold 0.5 -pc_hpddm_levels_1_st_share_sub_ksp " +
49+
" -pc_hpddm_levels_1_sub_mat_mumps_cntl_4 0.1 -pc_hpddm_levels_1_eps_use_inertia -pc_hpddm_levels_1_eps_threshold_absolute 0.5 -pc_hpddm_levels_1_st_share_sub_ksp " +
5050
" -ksp_type cg -ksp_monitor_singular_value", nearnullspace = Rb);
5151
u[] = A^-1 * rhs[];
5252

@@ -59,7 +59,7 @@ plotD(Th, u, cmm = "Global Solution");
5959
// meaning of some flags in sparams when using PCHPDDM (-pc_type hpddm on the command line)
6060
// -pc_hpddm_levels_1_sub_pc_type cholesky - subdomain solver is an exact Cholesky factorization
6161
// -pc_hpddm_levels_1_sub_pc_factor_mat_solver_type mumps - MUMPS is used for computing local exact factorizations
62-
// -pc_hpddm_levels_1_eps_threshold - threshold for selecting the eigenvectors in the GenEO coarse space
62+
// -pc_hpddm_levels_1_eps_threshold_absolute - threshold for selecting the eigenvectors in the GenEO coarse space
6363
// -pc_hpddm_has_neumann - local matrices passed to PCHPDDM are the Neumann matrices, see https://petsc.org/release/manualpages/PC/PCHPDDMHasNeumannMat/
6464
// -pc_hpddm_define_subdomains - use the FreeFEM overlap to define the preconditioner on the first level
6565
// -pc_hpddm_levels_1_pc_asm_type basic - https://petsc.org/release/manualpages/PC/PCASMType/

examples/hpddm/diffusion-hpddm-3d-PETSc.edp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Wh Rb[1];
4646
Rb[0] = 1;
4747
// all in one; see at the end of the script the meaning of the parameters
4848
set(A, sparams = " -pc_hpddm_levels_1_sub_pc_type lu -pc_hpddm_levels_1_sub_pc_factor_mat_solver_type mumps -pc_hpddm_has_neumann -pc_hpddm_define_subdomains " +
49-
" -pc_hpddm_levels_1_sub_mat_mumps_cntl_4 0.1 -pc_hpddm_levels_1_eps_use_inertia -pc_hpddm_levels_1_eps_threshold 0.5 -pc_hpddm_levels_1_st_share_sub_ksp " +
49+
" -pc_hpddm_levels_1_sub_mat_mumps_cntl_4 0.1 -pc_hpddm_levels_1_eps_use_inertia -pc_hpddm_levels_1_eps_threshold_absolute 0.5 -pc_hpddm_levels_1_st_share_sub_ksp " +
5050
" -ksp_type gmres -ksp_pc_side right -ksp_monitor", nearnullspace = Rb);
5151
u[] = A^-1 * rhs[];
5252

examples/hpddm/elasticity-block-hpddm-2d-PETSc.edp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,15 @@ if(HasType("PC", "hpddm")) {
107107
+ "-prefix_push fieldsplit_1_ "
108108
+ " -ksp_type fgmres -ksp_rtol 1.0E-1 -pc_type hpddm -pc_hpddm_has_neumann -ksp_monitor -pc_hpddm_ksp_pc_side right -pc_hpddm_ksp_rtol 1.0E-1 -pc_hpddm_schur_precondition geneo "
109109
+ " -prefix_push pc_hpddm_levels_1_ "
110-
+ " -eps_nev 10 -eps_threshold 0.5 -st_share_sub_ksp -eps_gen_non_hermitian -sub_pc_factor_mat_solver_type mumps -sub_pc_type cholesky -eps_tol 1.0E-2 "
110+
+ " -eps_nev 10 -eps_threshold_absolute 0.5 -st_share_sub_ksp -eps_gen_non_hermitian -sub_pc_factor_mat_solver_type mumps -sub_pc_type cholesky -eps_tol 1.0E-2 "
111111
+ " -prefix_pop -prefix_push pc_hpddm_coarse_ "
112112
+ " -correction balanced -pc_type cholesky -pc_factor_mat_solver_type mumps "
113113
+ " -prefix_pop"
114114
+ " -prefix_pop", setup = 1);
115115
set(A, parent = Elas, bs = sym ? 1 : 2, sparams =
116116
"-prefix_push fieldsplit_0_ -pc_type hpddm -ksp_pc_side right -pc_hpddm_has_neumann -pc_hpddm_define_subdomains"
117117
+ " -prefix_push pc_hpddm_levels_1_ "
118-
+ " -eps_nev 20 -eps_threshold 0.3 -st_share_sub_ksp -sub_pc_factor_mat_solver_type mumps -sub_pc_type cholesky "
118+
+ " -eps_nev 20 -eps_threshold_absolute 0.3 -st_share_sub_ksp -sub_pc_factor_mat_solver_type mumps -sub_pc_type cholesky "
119119
+ " -prefix_pop -prefix_push pc_hpddm_coarse_ "
120120
+ " -pc_type cholesky -pc_factor_mat_solver_type mumps "
121121
+ " -prefix_pop"

examples/hpddm/stokes-block-hpddm-2d-PETSc.edp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@ if(HasType("PC", "hpddm")) {
7272
+ "-prefix_push fieldsplit_1_ "
7373
+ " -ksp_type fgmres -pc_type hpddm -pc_hpddm_has_neumann -ksp_monitor -pc_hpddm_ksp_rtol 1.0E-2 -pc_hpddm_schur_precondition geneo "
7474
+ " -prefix_push pc_hpddm_levels_1_ "
75-
+ " -eps_nev 20 -eps_threshold 0.5 -st_share_sub_ksp -eps_gen_non_hermitian -sub_pc_factor_mat_solver_type mumps -sub_pc_type cholesky -eps_tol 1.0E-2 "
75+
+ " -eps_nev 20 -eps_threshold_absolute 0.5 -st_share_sub_ksp -eps_gen_non_hermitian -sub_pc_factor_mat_solver_type mumps -sub_pc_type cholesky -eps_tol 1.0E-2 "
7676
+ " -prefix_pop -prefix_push pc_hpddm_coarse_ "
7777
+ " -correction balanced -pc_type cholesky -pc_factor_mat_solver_type mumps "
7878
+ " -prefix_pop"
7979
+ " -prefix_pop", setup = 1);
8080
set(A, parent = Stokes, bs = sym ? 1 : 2, sparams =
8181
"-prefix_push fieldsplit_0_ -pc_type hpddm -ksp_pc_side right -pc_hpddm_has_neumann -pc_hpddm_define_subdomains"
8282
+ " -prefix_push pc_hpddm_levels_1_ "
83-
+ " -eps_nev 40 -eps_threshold 0.3 -st_share_sub_ksp -sub_pc_factor_mat_solver_type mumps -sub_pc_type cholesky "
83+
+ " -eps_nev 40 -eps_threshold_absolute 0.3 -st_share_sub_ksp -sub_pc_factor_mat_solver_type mumps -sub_pc_type cholesky "
8484
+ " -prefix_pop -prefix_push pc_hpddm_coarse_ "
8585
+ " -pc_type cholesky -pc_factor_mat_solver_type mumps "
8686
+ " -prefix_pop"

0 commit comments

Comments
 (0)