Hi,

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.

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 ?

Best,
Loic

Reply via email to