Current best method for wrapping Modern Fortran code with Python Current best method for wrapping Modern Fortran code with Python python python

Current best method for wrapping Modern Fortran code with Python


I have used SWIG to wrap some C/C++ code before but they don't support Fortran. They link to the following, though

At least FortWrap states that they support Fortran95, but you might have to use FortWrap to get C/C++ wrappers and SWIG for the Python wrappers. f90wrap will automatically generate the Python wrappers based on the f90 sources (and supports derived types).