Re: [petsc-users] Help with fieldsplit performance

2023-02-05 Thread Edoardo alinovi
PS: can you suggest any example to assemble an approximation for Schur? I am doing incompressible NS here, not really "sure" on how to deal with it and something to start would be useful!

Re: [petsc-users] Help with fieldsplit performance

2023-02-05 Thread Edoardo alinovi
Matt I messed up a bit the things as I sent you the number of sub iters done with preonly. It looks to be faster but outer iters goes up from 4 (with gmres as sub ksp) to 399, while run time goes from 37s to 10s. I manage to drop a bit the run time by dropping the relative tolerance Looking at the

Re: [petsc-users] Help with fieldsplit performance

2023-02-05 Thread Matthew Knepley
On Sun, Feb 5, 2023 at 3:56 PM Edoardo alinovi wrote: > Maybe I managed to find out the number of iters of the field split by > adding: fieldsplit_u_ksp_converged_reason. > You also want -fieldsplit_p_ksp_converged_reason so we can see the iterates for the Schur complement. > This gets printed

Re: [petsc-users] Help with fieldsplit performance

2023-02-05 Thread Edoardo alinovi
Maybe I managed to find out the number of iters of the field split by adding: fieldsplit_u_ksp_converged_reason. This gets printed 268 times: Linear UPeqn_fieldsplit_u_ solve converged due to CONVERGED_ITS iterations 1 1. You are using A11 as the preconditioning matrix for the Schur complement.

Re: [petsc-users] Help with fieldsplit performance

2023-02-05 Thread Edoardo alinovi
Hi Matt, Thanks for your feedback! Would you suggest me the command line to get the number of sub iterations? Il Dom 5 Feb 2023, 20:14 Matthew Knepley ha scritto: > On Sun, Feb 5, 2023 at 1:26 PM Edoardo alinovi > wrote: > >> Hello Petsc's crew, >> >> I would like to ask for some support in se

Re: [petsc-users] Help with fieldsplit performance

2023-02-05 Thread Matthew Knepley
On Sun, Feb 5, 2023 at 1:26 PM Edoardo alinovi wrote: > Hello Petsc's crew, > > I would like to ask for some support in setting up the fieldsplit > preconditioner in order to obtain better performance. I have already found > some posts on the topic and keep experimenting, but I would like to hear

[petsc-users] Help with fieldsplit performance

2023-02-05 Thread Edoardo alinovi
Hello Petsc's crew, I would like to ask for some support in setting up the fieldsplit preconditioner in order to obtain better performance. I have already found some posts on the topic and keep experimenting, but I would like to hear your opinion as experts :) I have my fancy CFD pressure based