Re: [petsc-users] (no subject)

2019-12-03 Thread Li Luo
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

Re: [petsc-users] MatView to disk for Elemental

2019-12-03 Thread Smith, Barry F.
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

Re: [petsc-users] (no subject)

2019-12-03 Thread Smith, Barry F.
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 =