Modeling, simulation, and engineering

Archive for the ‘Fortran’ Category

Building and linking to a shared Fortran library

Monday, October 26th, 2009 Posted in Fortran, Linux, Scientific computing | No Comments »

I'm using GNU Fortran (gfortran) to build several shared libraries, and then dynamically linking to them from a Fortran program.  The process is a little different than what I'm used to for C libraries, so I thought I'd explain it.  ...

f2py: binding Fortran and Python

Wednesday, September 23rd, 2009 Posted in Fortran, Python, Software development | No Comments »

I  have recently started using f2py to call Fortran from Python.  I have found this useful for two reasons: speeding up Python scripts by calling compiled Fortran code, and using Python as a unit testing framework for Fortran modules.   Unfortunately, ...