I am building a multi-level fieldsplit solver, starting with splitting the fields.
-ksp_monitor
# plastic strains
-pc_type fieldsplit
-pc_fieldsplit_type schur
-fieldsplit_0_ksp_type preonly
-fieldsplit_0_ksp_monitor
-fieldsplit_0_pc_type lu
-fieldsplit_0_pc_factor_mat_solver_type mumps
-fieldsplit_1_pc_type fieldsplit
-fieldsplit_1_pc_fieldsplit_type schur
-fieldsplit_1_ksp_type preonly
-fieldsplit_1_ksp_monitor
# plastic multiplier
-fieldsplit_1_fieldsplit_0_pc_type lu
-fieldsplit_1_fieldsplit_0_ksp_type preonly
-fieldsplit_1_fieldsplit_0_pc_factor_mat_solver_type mumps
-fieldsplit_1_fieldsplit_0_ksp_monitor
# boundary
-fieldsplit_1_fieldsplit_1_pc_type lu
-fieldsplit_1_fieldsplit_1_ksp_type preonly
-fieldsplit_1_fieldsplit_1_ksp_monitor
and the output is
] <inform> [petsc] 0 SNES Function norm 8.276359569249e+02 [ 8.276359569249e+02 , 6.166468273909e-07 , 0.000000000000e+00 ]
[0] <inform> [petsc] 0 KSP Residual norm 9.641039121356e+00
[0] <inform> [petsc] 1 KSP Residual norm 4.844583274202e-14
[0] <inform> [petsc] 1 SNES Function norm 3.515207777594e+02 [ 3.515207777594e+02 , 6.366138602407e-07 , 1.530979979816e-13 ]
[0] <inform> [petsc] 0 KSP Residual norm 4.252398977796e+00
[0] <inform> [petsc] 1 KSP Residual norm 1.021194767660e-14
[0] <inform> [petsc] 2 SNES Function norm 5.196932266325e+01 [ 5.196932266325e+01 , 2.300586250842e-07 , 1.949889382638e-14 ]
Does anyone have an idea, why do I see only two KSP iterations? There should be tree of iterations. Am I missing some parameters?