Is this a new function? Or do you mean just VecGetArray?<div><br></div><div> Matt<br><br><div class="gmail_quote">On Mon, Jun 14, 2010 at 5:56 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;">It seems to me that every correct use of this function should mark the<br>
array const, so perhaps it would make sense to have<br>
<br>
PetscErrorCode VecGetArrayRead(Vec,const PetscScalar**);<br>
PetscErrorCode VecRestoreArrayRead(Vec,const PetscScalar**);<br>
<br>
rather than always casting away const at the call site.<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>