3 ms·
I would just call Fortran directly from Python. That's also what's normally done by people that use Fortran and Python. There is F2py (that's part of Numpy) htt
by ReleaseCandidat 5y ago
I would just call Fortran directly from Python. That's also what's normally done by people that use Fortran and Python.
There is F2py (that's part of Numpy)
https://numpy.org/doc/stable/f2py/ https://numpy.org/doc/stable/f2py/
To interchange data with Fortran you use files, mostly CSV (Fortran isn't exactly the nicest language to write parsers in). It's actually not encouraging that your post is the fourth google result of `fortran pubsub` :D
Disclaimer: I haven't used Fortran (with or without Python ;) for quite some years now, so maybe there are libraries now to do the stuff you're trying to do.
Btw: Fortran-Wiki: https://fortranwiki.org/fortran/show/HomePage https://fortranwiki.org/fortran/show/HomePage