<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Feb 4, 2015 at 3:45 PM, Mark Adams <span dir="ltr"><<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">This commit seems to have caused my MatShell code to break:<div><br></div><div><div>[22]PETSC ERROR: Object is in wrong state</div><div>[22]PETSC ERROR:  Vec is locked read only, argument # 1</div></div></div></blockquote><div><br></div><div>Is your MatShell code using VecGetArray() when it should be using VecGetArrayRead()?</div><div><br></div><div>  Thanks,</div><div><br></div><div>    Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>This seems to be the problem (Barry):</div><div><div><br></div><div><div>16:40 (5edff71...)|BISECTING ~/Codes/petsc$ git bisect bad</div><div>Bisecting: 0 revisions left to test after this (roughly 0 steps)</div><div>[d9ca1df42eda25bc875149d6d493aad6e204c9ff] Added VecLockPush() and VecLockPop() to make vector read only Used VecLockPush() and VecLockPop() in a couple of key locations; PCApply(), KSPSolve(), MatMult() Fixed many uses of VecGetArray() to VecGetArrayRead() Added VecGet/RestoreArrayPair() for commonly occuring pattern Added const to many locations driven by use of VecGetArrayRead()</div></div><div><br></div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div>
</div></div>