NRL Flux-Corrected Transport algorithm for Solving Generalized Continuity Equations--now in Python with Examples!
demonstrates use of Fortran code called from Python. In this case, using Fortran code as a Python module is about 50 times faster than the very slow writing Fortran output to a text file, and parsing the text in Python or Matlab.
For the Python wrapping Fortran:
pip install -e .
(optional) to use just Fortran alone:
cmake -B build
cmake --build build --parallel
./runfast2d.py
./runshock.py