
Using a hack like this, it's also possible to pass derived type object >pointers, "type(Typename), pointer", from the Python side to
On 10/24/07, Pauli Virtanen <ptvirtan@elisanet.fi> wrote: 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