Re: [petsc-users] PC FieldSplit - How to Count the Iterations

2018-03-15 Thread Sonia Pozzi
Perfect, Thank you a lot, Sonia Ph.D. Student Group of Prof. Rolf Krause Institute of Computational Science Università della Svizzera italiana Center for Computation Medicine in Cardiology Via Giuseppe Buffi, 13 CH-6900 Lugano Switzerland Email: poz...@usi.ch Phone: +41

Re: [petsc-users] PC FieldSplit - How to Count the Iterations

2018-03-14 Thread Matthew Knepley
On Wed, Mar 14, 2018 at 11:21 PM, Sonia Pozzi wrote: > Dear Barry, > > thank you for the answer. That helped a lot. Just a second curiosity. > I’m setting A00 to be solved with preonly+lu. I obtain the following > ksp_0 KSPGetTotalIterations: 26 > ksp_1 KSPGetTotalIterations: 22 > Residual ksp_

Re: [petsc-users] PC FieldSplit - How to Count the Iterations

2018-03-14 Thread Smith, Barry F.
Matt can likely answer this but it is always better to try to figure out things yourself. Everything in PETSc is knowable to the user if you know the correct places to look. I would run in the debugger and put a break point in KSPSolve() then do a bt (or where) at each call to KSPSolv

Re: [petsc-users] PC FieldSplit - How to Count the Iterations

2018-03-14 Thread Sonia Pozzi
Dear Barry, thank you for the answer. That helped a lot. Just a second curiosity. I’m setting A00 to be solved with preonly+lu. I obtain the following ksp_0 KSPGetTotalIterations: 26 ksp_1 KSPGetTotalIterations: 22 Residual ksp_0: 0 Reason ksp_0: 4 Solution ksp_0 : Convergence in 1 iterations.

Re: [petsc-users] PC FieldSplit - How to Count the Iterations

2018-03-14 Thread Smith, Barry F.
> On Mar 14, 2018, at 8:47 AM, Sonia Pozzi wrote: > > Dear PETSc Developers and Users, > > I’m working with PCFieldSplit preconditioner (Schur complement based > approach). > To count the number of iterations I’m taking the info from subksp_0 and > subksp_1. > I understand that the number o

[petsc-users] PC FieldSplit - How to Count the Iterations

2018-03-14 Thread Sonia Pozzi
Dear PETSc Developers and Users, I’m working with PCFieldSplit preconditioner (Schur complement based approach). To count the number of iterations I’m taking the info from subksp_0 and subksp_1. I understand that the number of its for subksp_1 are related to the call for the solution of the Sch