<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jul 19, 2016 at 11:12 PM, gouarin <span dir="ltr"><<a href="mailto:loic.gouarin@math.u-psud.fr" target="_blank">loic.gouarin@math.u-psud.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I would like to use DMGetLocalVector and DMGetGlobalVector with petsc4py but I didn't find the appropriate methods. If they are not implemented, I can do a PR with these functions and their Restore part.<br></blockquote><div><br></div><div>You are right, these are missing.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have an other problem: I have to optimize a Python function that take a numpy array given by the function getVecArray of a DMDA and I would like to use Pythran to do that. The problem is that Pythran doesn't recognize the array as a numpy array because the flags C_CONTIGUOUS and F_CONTIGUOUS are both set to False. Is there a reason that the C_CONTIGUOUS flag is set to False and not to True ?<br></blockquote><div><br></div><div>For this, can't you just use vec.getArray()?</div><div><br></div><div>  Thanks,</div><div><br></div><div>    Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Best,<br>
Loic<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">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</div>
</div></div>