[petsc-users] on SNESSetJacobian semantics
Jed Brown
jed at jedbrown.org
Thu Oct 22 10:46:24 CDT 2015
Matthew Knepley <knepley at gmail.com> writes:
> On Thu, Oct 22, 2015 at 9:37 AM, Marco Zocca <zocca.marco at gmail.com> wrote:
>
>> Thank you, but this is not really helping;
>>
>> why are there two slots to supply the Jacobian of the same function, i.e.
>> Amat and J ?
>>
>
> Amat is just the storage, not the values. J computes the values.
More precisely, Amat provides the action of the Jacobian (possibly
matrix-free).
Pmat provides the data from which to construct the preconditioner. This
is most frequently an assembled matrix (possibly from a simpler
discretization, skipping some terms, etc.), but could hold additional
information or eschew matrix entries entirely.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20151022/b4e41087/attachment.pgp>
More information about the petsc-users
mailing list