[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Default convergence test used in PETSc
- To: petsc-users@xxxxxxxxxxx
- Subject: Re: Default convergence test used in PETSc
- From: "Matthew Knepley" <knepley@xxxxxxxxx>
- Date: Thu, 3 Apr 2008 08:53:23 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=Nq/5i2x3jtTSYfOJZniGM4Tamgu2M6DiQdgcxk9DhLk=; b=Sd5MmE+NGF4YDXqIQsGML/ML7NZX2ildDypmE/JG05/XIyRMZdJQE9sgy74BBqwyoQvOA52TwXgZ3fPBSi67aDuGEPkaSTy+H/0pDB61eJrg8bkR0rLSUNrBoj7a4Lz1sWpwqaw7DEfPSW+4lOiFP5BawCCzoXERq0TcJ26xT5o=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=go3wufwCOR5eZmQqtQGuTAgyO6mIMEawrbN9taAMprtnUUq3jy1sR/+RqeStxmGvF1PBLqtOrQfyH2rAiCqPAAJJtQiIeQe8EXqSCUyg1f0in0d9ysjZinCjZDdD/cGiNAvi4MqKAalHz/Az+chOSetfTpXkoDM5WGkSL4lxsQM=
- In-reply-to: <843CZB023912@awe.co.uk>
- References: <843CZB023912@awe.co.uk>
- Reply-to: petsc-users@xxxxxxxxxxx
- Sender: owner-petsc-users@xxxxxxxxxxx
There are special cases, the explanation can be rather lengthy. I instead point
you to the actual code:
http://www-unix.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/src/ksp/ksp/interface/iterativ.c.html#KSPDefaultConverged
Matt
On Thu, Apr 3, 2008 at 6:34 AM, Stephen R Ball <Stephen.R.Ball@xxxxxxxxx> wrote:
> Hi
>
> I am trying to determine the default convergence test used by PETSc.
> Your pdf user's guide states the default test is based on the decrease
> of the residual norm relative to the right-hand-side while your html
> documentation for KSPDefaultConverged() seems to imply that the default
> test is based on the decrease of the residual norm relative to the
> initial residual norm. Can you tell me which is actually the default?
>
> Regards
>
> Stephen
>
>
--
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