Thank you, I'll try that.
Best,
Li
On Wed, Dec 4, 2019 at 5:34 AM Smith, Barry F. wrote:
>
> From the code:
>
> if (snes->lagjacobian == -2) {
> snes->lagjacobian = -1;
>
> ierr = PetscInfo(snes,"Recomputing Jacobian/preconditioner because lag
> is -2 (means compute Jacobian, but
sorry about this. The numerical values between C and Fortran got out of sync.
I've attached a patch file you can apply with
patch -p1 < format.patch
or you can use the branch https://gitlab.com/petsc/petsc/merge_requests/2346
Barry
> On Dec 3, 2019, at 1:10 AM, Marius Buerkle
From the code:
if (snes->lagjacobian == -2) {
snes->lagjacobian = -1;
ierr = PetscInfo(snes,"Recomputing Jacobian/preconditioner because lag is
-2 (means compute Jacobian, but then never again) \n");CHKERRQ(ierr);
} else if (snes->lagjacobian == -1) {
ierr =