| 32b97717 | 21-May-2014 |
Peter Brune <brune@mcs.anl.gov> |
SNES: Set up matrix-free *after* copying the user Jacobian to snes->pc
A bug was introduced in ddd0b78 that broke nonlinear left preconditioning due to the MATMFFD instance set up on the outer solve
SNES: Set up matrix-free *after* copying the user Jacobian to snes->pc
A bug was introduced in ddd0b78 that broke nonlinear left preconditioning due to the MATMFFD instance set up on the outer solver being copied to the inner. The solver calls SNESSolve() on itself in a loop trying to difference the preconditioned function. The solution is to set up the matrix-free context after copying all relative state onto snes->pc, preserving the use case fix that was the inspiration for the change in ddd0b78.
show more ...
|
| 0b9b3eb7 | 06-Mar-2014 |
Geoffrey Oxberry <goxberry@gmail.com> |
Make SNESJacobianFunction docs & code consistent.
Interface to SNESSetJacobian now includes a function with signature PetscErrorCode (*J)(SNES,Vec,Mat,Mat,void*) as its fourth argument. This commit
Make SNESJacobianFunction docs & code consistent.
Interface to SNESSetJacobian now includes a function with signature PetscErrorCode (*J)(SNES,Vec,Mat,Mat,void*) as its fourth argument. This commit brings the documentation for SNESJacobianFunction in line with the SNESSetJacobian interface.
show more ...
|