Hello everyone,
I am currently working on a finite element discretization of inductionless MHD. 
I am trying to construct a nested PCFieldSplit preconditioner and would 
appreciate some clarification about the exact operator on which the nested 
FieldSplit is acting.

The matrix has the following (3x3) block structure:

K = [A    C^T     0 \
        C     -M     B^T \
        0      B        0]

where (A) corresponds to the velocity laplacian block (discretized using CG 
element), (M) is the current-related mass matrix (discretized using RT 
elements), (C) is the velocity-current coupling and (B^T) is the gradient 
operator corresponding to potential (discretized using DG elements). 

I use an outer FieldSplit with the velocity block as field 0 and the 
current/pressure blocks as field 1:

K = [   A      \bar(C)^T \
       \bar(C)      D]

D =[-M   B^T \
        B     0]

with

\bar(C) =  [C \
                 0]

With an outer Schur FieldSplit, my understanding is that the Schur complement is

[ -M - C A^{-1} C^T   B^T\
               B                    0]

I then use another FieldSplit as the preconditioner for this outer Schur 
complement, splitting the current and pressure fields again. 
The options the I'm currently using are:

-ksp_type fgmres
-ksp_view
-ksp_monitor
-pc_type fieldsplit
-pc_fieldsplit_block_size 3
-pc_fieldsplit_type schur
-pc_fieldsplit_0_fields 0
-pc_fieldsplit_1_fields 1,2
-pc_fieldsplit_schur_fact_type lower

# Approximate A^{-1}
-fieldsplit_0_ksp_type preonly 
-fieldsplit_0_pc_type hypre
-fieldsplit_0_pc_hypre_type boomeramg

# Preconditioner for Schur complement
-fieldsplit_1_ksp_type preonly
-fieldsplit_1_pc_type fieldsplit

-fieldsplit_1_pc_fieldsplit_block_size 2
-fieldsplit_1_pc_fieldsplit_0_fields 0
-fieldsplit_1_pc_fieldsplit_1_fields 1

-fieldsplit_1_pc_fieldsplit_type schur
-fieldsplit_1_pc_fieldsplit_schur_fact_type lower

-fieldsplit_1_fieldsplit_0_ksp_type gmres
-fieldsplit_1_fieldsplit_0_ksp_max_it 30
-fieldsplit_1_fieldsplit_0_pc_type none

-fieldsplit_1_fieldsplit_1_ksp_type gmres
-fieldsplit_1_fieldsplit_1_ksp_max_it 30
-fieldsplit_1_fieldsplit_1_pc_type none


I have two main questions.

1. Is my interpretation of the nested FieldSplit correct?

The PETSc documentation states:

"By default, A11 is used to construct a preconditioner for S, use 
PCFieldSplitSetSchurPre() for all the possible ways to construct the 
preconditioner for S."

I would like to understand precisely how this interacts with

-fieldsplit_1_pc_type fieldsplit

My interpretation is that the outer FieldSplit first defines

S=D - \bar(C) A^{-1} \bar(C)^T,

and that fieldsplit_1_pc_type fieldsplit then uses a nested FieldSplit as the 
preconditioner for this (S). Thus, the second FieldSplit should operate on the 
Schur-complement operator (S), rather than directly on the original block which 
is matrix D. Is this interpretation correct?

2. I also have a concern regarding the computational cost of this 
preconditioner.

As I understand the proposed setup, applying the outer preconditioner involves 
applying a preconditioner for the outer Schur complement, which itself contains 
another FieldSplit and an inner Schur-complement solve. The innermost current 
and potential blocks are then solved using GMRES with a maximum of 30 
iterations.

Therefore, I am concerned that the cost of each outer FGMRES iteration could 
become relatively high due to the nested iterative solves. In particular, if 
the inner GMRES solvers require a significant fraction of their maximum 
iterations, the number of operator applications involved in a single outer 
iteration could become large.

Since my current problem is only two-dimensional, is this type of nested 
preconditioner expected to offer any computational advantage over a direct 
solver, or would its main benefits be expected for substantially larger 
problems, particularly in 3D?

Any advice or feedback would be greatly appreciated!

Regards,
Devansh.

Reply via email to