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