[f2py] mycb (callback question)
Curtis Jensen
cjensen@bioeng.ucsd.edu
Mon, 20 Aug 2001 14:23:04 -0700
This is a multi-part message in MIME format.
--------------4E5C3B9A6FBC8838F2B6ACA3
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Pearu,
In the attached exmaple, I want to have a callback function that I just
pass to another subroutine. However, f2py seems to want to know the
arguments for the callback function. Can I use the in-file f2py
comment/directives to tell f2py what the arguments are for the
callback. Or do I have to use a .pyf file?
Thanks.
--
Curtis Jensen
cjensen@bioeng.ucsd.edu
http://www-bioeng.ucsd.edu/~cjensen/
FAX (425) 740-1451
--------------4E5C3B9A6FBC8838F2B6ACA3
Content-Type: text/plain; charset=us-ascii;
name="mycb.f"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="mycb.f"
SUBROUTINE mycb(basiscallback)
IMPLICIT NONE
external basiscallback
call foo(basiscallback)
RETURN
END
--------------4E5C3B9A6FBC8838F2B6ACA3--