Int. J. of Computational Science and Engineering   »   2009 Vol.4, No.4



Title: F2PY: a tool for connecting Fortran and Python programs


Author: Pearu Peterson


Address: Centre for Nonlinear Studies, Institute of Cybernetics at Tallinn Technical University, Akadeemia tee 21, 12918 Tallinn, Estonia


Abstract: In this paper we tackle the problem of connecting low-level Fortran programs to high-level Python programs. The difficulties of mixed language programming between Fortran and C are resolved in an almost compiler and platform independent way. We provide a polished software tool F2PY that can (semi-)automatically build interfaces between the Python and Fortran languages and hence almost completely hide the difficulties from the target user: a research scientist who develops a computer model using a high-performance scripting approach.


Keywords: high-performance scripting; Fortran; Python; code generation; F2PY; mixed language programming.


DOI: 10.1504/IJCSE.2009.029165


Int. J. of Computational Science and Engineering, 2009 Vol.4, No.4, pp.296 - 305


Available online: 08 Nov 2009



Editors Full text accessAccess for SubscribersPurchase this articleComment on this article