<div dir="ltr">I fixed this example and it shows the error now:<br><br>07:53 nid02816 master ~/petsc/src/snes/examples/tutorials$ make runex73f90t PETSC_ARCH=arch-xc30-dbg-intel                                                <br>[2]PETSC ERROR: [1]PETSC ERROR: [3]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------        <br>--------------------- Error Message --------------------------------------------------------------                                                        <br>--------------------- Error Message --------------------------------------------------------------                                                        <br>[2]PETSC ERROR: [1]PETSC ERROR: Object is in wrong state                                                                                                  <br>[3]PETSC ERROR: Object is in wrong state                                                                                                                  <br>[2]PETSC ERROR: [1]PETSC ERROR: Object is in wrong state                                                                                                  <br> Vec is locked read only, argument # 1                                                                                                                    <br> Vec is locked read only, argument # 1                                                                                                                    <br>[3]PETSC ERROR: [1]PETSC ERROR: [2]PETSC ERROR:  Vec is locked read only, argument # 1          <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 29, 2015 at 10:42 AM, 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"><div>I am getting an error because my TS formIFunction gets the sub vectors with:<br><div><br>  call DMCompositeGetAccessArray(dm,XX,ithree,PETSC_NULL_INTEGER,Xsub,ierr);CHKERRQ(ierr)<br><br></div><div>I get an error that XX is locked.  But there does not seem to be a DMCompositeGetAccessArrayRead<br><br></div><div>The one example that does this does not compile anymore apparently.<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">Mark<br></font></span></div>
</blockquote></div><br></div>