[petsc-users] TSPseudo overriding SNES iterations

Mark W. Lohry mlohry at princeton.edu
Wed Jan 4 14:09:47 CST 2017


Thanks for quick reply Barry, that did the trick.

While I respect the belief of the anonymous distinguished developer, IMHO it would probably be better for things in TS to not override things in SNES unless necessary.

On Jan 4, 2017 2:50 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:

   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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20170104/6324cdb9/attachment.html>


More information about the petsc-users mailing list