<div dir="ltr">Hello Petsc-users,<div><br></div><div>I tested the hand-coded Jacobian, and received the follow error:</div><div><br></div><div><div>Testing hand-coded Jacobian, if the ratio is</div><div>O(1.e-8), the hand-coded Jacobian is probably correct.</div>
<div>Run with -snes_test_display to show difference</div><div>of hand-coded and finite difference Jacobian.</div><div>Norm of matrix ratio 7.23832e-10 difference 1.39168e-07 (user-defined state)</div><div>Norm of matrix ratio 1.15746e-08 difference 2.2254e-06 (constant state -1.0)</div>
<div>Norm of matrix ratio 7.23832e-10 difference 1.39168e-07 (constant state 1.0)</div><div>[0]PETSC ERROR: --------------------- Error Message ------------------------------------</div><div>[0]PETSC ERROR: Object is in wrong state!</div>
<div>[0]PETSC ERROR: SNESTest aborts after Jacobian test!</div><div>[0]PETSC ERROR: ------------------------------------------------------------------------</div><div>[0]PETSC ERROR: Petsc Release Version 3.4.3, Oct, 15, 2013 </div>
<div>[0]PETSC ERROR: See docs/changes/index.html for recent updates.</div><div>[0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.</div><div>[0]PETSC ERROR: See docs/index.html for manual pages.</div></div>
<div><br></div><div>What does "Object is in wrong state!" mean? What are the possible sources of this error? Thank you for your time.</div><div><br></div><div>Que</div></div>