[petsc-users] TSPseudo overriding SNES iterations

Barry Smith bsmith at mcs.anl.gov
Wed Jan 4 13:50:51 CST 2017


   Mark,

     This happens because some distinguished PETSc developer believes that by definition Pseudo transient continuation should not do multiple Newton iterations per "time step".  Thus this developer defaulted the nonlinear solver in TSPSEUDO to be KSPONLY which, since it only does a linear solver does not support multiple Newton steps even if you ask for multiple steps.

   To get the effect you want, and what, IMHO many people may want, you need to run with -snes_type newtonls Please let us know if this does not work.

   Sorry for the confusion,

    Barry



> On Jan 4, 2017, at 1:26 PM, Mark W. Lohry <mlohry at princeton.edu> wrote:
> 
> I have an unsteady problem I'm trying to solve for steady state. The regular time-accurate stepping works fine (uses around 5 Newton iterations with 100 krylov iterations each per time step) with beuler stepping. 
> 
> 
> But when changing only TSType to pseudo it looks like SNES max iterations is getting set to 1, and each pseduo time step then only does a single Newton step and then throws SNES CONVERGED_ITS 1 despite setting snessettolerances to allow 50 Newton steps.
> 
> I'm trying to use all the same configuration here that works for backward Euler, but just continually increase the step size each time step. What am I missing here?
> 
> Thanks,
> Mark



More information about the petsc-users mailing list