[Numpy-discussion] a simple question about f2py
Lisandro Dalcin
dalcinl at gmail.com
Tue Oct 23 16:17:54 EDT 2007
Im trying to use f2py to wrap some fortran functions wich receive as
argument PETSc objects. The usual way to implement this with
PETSc+fortran is to do something like this
soubrutine matvec(A,x,y)
Mat A
Vec x
Vec y
end soubrutine
The 'Mat' and 'Vec' types are actually integers of appropriate kind,
PETSc uses a #define to
define them. I there any way I can teach/hack f2py to translate
Mat/Vec/etc. to a normal fortran type?
--
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