I am cool with it.<div><br></div><div>   Matt<br><br><div class="gmail_quote">On Mon, Jun 14, 2010 at 7:42 AM, Jed Brown <span dir="ltr"><<a href="mailto:jed@59a2.org">jed@59a2.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Mon, 14 Jun 2010 07:23:20 -0500, Matthew Knepley <<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>> wrote:<br>
> Is this a new function? Or do you mean just VecGetArray?<br>
<br>
</div>This introduces VecRestoreArrayRead, but the array is still not marked<br>
const.<br>
<br>
  <a href="http://petsc.cs.iit.edu/petsc/petsc-dev/rev/bf752c718a45" target="_blank">http://petsc.cs.iit.edu/petsc/petsc-dev/rev/bf752c718a45</a><br>
<br>
It actually has different behavior than the usual VecRestoreArray, but I<br>
would prefer a symmetric interface with a VecGetArrayRead that is<br>
equivalent to VecGetArray except for a const array.  This is as much an<br>
issue about symmetry and grepability as not littering the code with<br>
(PetscScalar**) casts.<br>
<font color="#888888"><br>
Jed<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>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<br>

</div>