[Numpy-discussion] a simple question about f2py

Lisandro Dalcin dalcinl@gmail....
Wed Oct 24 19:14:18 CDT 2007


Pauli, I finally understood your idea!!!! What a good hack!!!

You have to pass an integer array with enough space in order Fortran
con store there some extra metadata, no just the buffer pointer, but
also dimensions and some other runtime stuff.

Many, many, many thanks....


On 10/24/07, Pauli Virtanen <ptvirtan@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.


-- 
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