Hi,
Thanks all works now! The implicit none only didn't work when defining
dv as a function now its a subroutine it seems to work.
Regards
Jon
On 12/01/2010 13:44, Pearu Peterson wrote:
> Hi,
>
> The problem is that f2py does not support callbacks that
> return arrays. There is easy workaroun
Hi,
The problem is that f2py does not support callbacks that
return arrays. There is easy workaround to that: provide
returnable arrays as arguments to callback functions.
Using your example:
SUBROUTINE CallbackTest(dv,v0,Vout,N)
IMPLICIT NONE
!F2PY intent( hide ):: N
INTEGER:: N, ic
Hi,
I'm trying to build a differential equation integrator and later a stochastic
differential equation integrator.
I'm having trouble getting f2py to work where the callback itself receives an
array from the Fortran routine does some work on it and then passes an array
back.
For the stoach