Re: [petsc-dev] ksp_error_if_not_converged in multilevel solvers

2019-10-21 Thread Smith, Barry F. via petsc-dev
> On Oct 21, 2019, at 12:55 AM, Pierre Jolivet > wrote: > > > > On Oct 20, 2019, at 6:07 PM, "Smith, Barry F." wrote: > >> >> The reason the code works this way is that normally >> -ksp_error_if_not_converged is propagated into the inner (and innerer) >> solves and normally it is

Re: [petsc-dev] ksp_error_if_not_converged in multilevel solvers

2019-10-21 Thread Pierre Jolivet via petsc-dev
> On 21 Oct 2019, at 3:04 PM, Jed Brown wrote: > > Pierre Jolivet via petsc-dev writes: > >> On Oct 20, 2019, at 6:07 PM, "Smith, Barry F." wrote: >> >>> >>> The reason the code works this way is that normally >>> -ksp_error_if_not_converged is propagated into the inner (and innerer)

Re: [petsc-dev] ksp_error_if_not_converged in multilevel solvers

2019-10-21 Thread Jed Brown via petsc-dev
Pierre Jolivet via petsc-dev writes: > On Oct 20, 2019, at 6:07 PM, "Smith, Barry F." wrote: > >> >> The reason the code works this way is that normally >> -ksp_error_if_not_converged is propagated into the inner (and innerer) >> solves and normally it is desirable that these inner solves

Re: [petsc-dev] ksp_error_if_not_converged in multilevel solvers

2019-10-20 Thread Pierre Jolivet via petsc-dev
On Oct 20, 2019, at 6:07 PM, "Smith, Barry F." wrote: > > The reason the code works this way is that normally > -ksp_error_if_not_converged is propagated into the inner (and innerer) solves > and normally it is desirable that these inner solves do not error simply > because they reach

Re: [petsc-dev] ksp_error_if_not_converged in multilevel solvers

2019-10-20 Thread Smith, Barry F. via petsc-dev
The reason the code works this way is that normally -ksp_error_if_not_converged is propagated into the inner (and innerer) solves and normally it is desirable that these inner solves do not error simply because they reach the maximum number of iterations since for nested iterative methods

Re: [petsc-dev] ksp_error_if_not_converged in multilevel solvers

2019-10-20 Thread Mark Adams via petsc-dev
> If one just wants to run a fixed number of iterations, not checking for > convergence, why would one set ksp->errorifnotconverged to true? > > Good question. I can see not worrying too much about convergence on the coarse grids, but to not allow it ... and now that I think about it, it seems

[petsc-dev] ksp_error_if_not_converged in multilevel solvers

2019-10-20 Thread Pierre Jolivet via petsc-dev
Hello, I’m trying to get multilevel solvers to error out when coarse levels are not converging, but I’m failing… Could someone either tell me if this is not possible to do so, or help me find what the problem in my options is, please? (in src/ksp/ksp/examples/tutorials) $ mpirun -n 8 ./ex71