[Numpy-discussion] a simple question about f2py
Lisandro Dalcin
dalcinl at gmail.com
Wed Oct 24 17:12:53 EDT 2007
On 10/24/07, Pauli Virtanen <ptvirtan at elisanet.fi> wrote:
>Using a hack like this, it's also possible to pass derived type
object >pointers, "type(Typename), pointer", from the Python side to
the >Fortran side, as opaque handles.
Could you please send/point me an example of how I can actually pass
Fortran pointers between Python and Fortran? I cannot get that
working...
I'm trying to allocate arrays in Fortran, get a opaque handle to it in
Python, and finally pass-back the pointer to Fortran for
deallocation... Is this possible?
--
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
More information about the NumPy-Discussion
mailing list