[petsc-users] running ex29 in snes

Jed Brown jed at 59A2.org
Mon May 16 16:30:18 CDT 2011


On Mon, May 16, 2011 at 22:44, Qian Zhu <qzhu at mcs.anl.gov> wrote:

> I am trying to run ex29 under $PETSC_DIR/src/snes/examples/tutorials. It
> seems that it does not terminate even with 80,xxx time steps...I was using
> the default parameters. How long does this app. to converge? What can I do
> to make it terminate in a short time? Thanks a lot!
>

Maybe try fewer time steps?

$ grep max_steps petsc/src/snes/examples/tutorials/ex29.c
  PetscInt       max_steps,print_freq;
    tsCtx.max_steps   = 1000000;
    tsCtx.print_freq  = tsCtx.max_steps;
    ierr = PetscOptionsGetInt(PETSC_NULL, "-max_st",
&tsCtx.max_steps,PETSC_NULL);CHKERRQ(ierr);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110516/73bfb75d/attachment.htm>


More information about the petsc-users mailing list