[petsc-users] Aborting outer iterations when inner iterations reach maxits fieldsplit
Matthew Knepley
knepley at gmail.com
Mon Feb 3 13:08:51 CST 2014
On Mon, Feb 3, 2014 at 12:58 PM, James MBewu <james.mbewu at gmail.com> wrote:
> Hi all petsc gurus,
>
> I am solving Navier Stokes equations using Q2-Q1 elements via libmesh and
> using petsc fieldsplit schur complement etc for the solving I was wondering
> whether it was possible to abort the outer iterations of the solver if the
> inner solver reached a set maximum iterations. At the moment if I set the
> maximum iterations of the inner solver, then once that is reached, the
> outer iterations continue and another inner solve is performed. Essentially
> I would like to say "I can't solve the inner problem so let's just give up
> on the whole thing". Is there any (easy) way to do this?
>
http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/SNES/SNESSetMaxLinearSolveFailures.html#SNESSetMaxLinearSolveFailures
Matt
> Please advise, thanks,
> James
>
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140203/fb877322/attachment.html>
More information about the petsc-users
mailing list