Skip to content

Basics of how to use Numpy's F2PY to call a Fortran subroutine from Python

License

Notifications You must be signed in to change notification settings

dfcastap/f2py_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

f2py_example

Basics of how to use Numpy's F2PY to call a Fortran subroutine from Python Required: Python + Numpy and a Fortran compiler.

To compile the f90 code you must type

f2py -c -m some_file some_file.f90

In the Python script, change the file name variable and the number of elements in the file as needed.

About

Basics of how to use Numpy's F2PY to call a Fortran subroutine from Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published