I am cool with it. Matt
On Mon, Jun 14, 2010 at 7:42 AM, Jed Brown <jed at 59a2.org> wrote: > On Mon, 14 Jun 2010 07:23:20 -0500, Matthew Knepley <knepley at gmail.com> > wrote: > > Is this a new function? Or do you mean just VecGetArray? > > This introduces VecRestoreArrayRead, but the array is still not marked > const. > > http://petsc.cs.iit.edu/petsc/petsc-dev/rev/bf752c718a45 > > It actually has different behavior than the usual VecRestoreArray, but I > would prefer a symmetric interface with a VecGetArrayRead that is > equivalent to VecGetArray except for a const array. This is as much an > issue about symmetry and grepability as not littering the code with > (PetscScalar**) casts. > > Jed > -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20100614/c3e29efa/attachment.html>