Files for In-Class Exercises
- double.f: Simple Fortran 77 function to double a value.
-
qtcm.py:
From the
qtcm
package. - shared.f90: Simple Fortran 90 module.
- test_shared.py: Python script using shared.f90.
- test_writeit.py: Python script using writeit.f90 and shared.f90.
-
wrapcall.F90:
From the
qtcm
package. - writeit.f90: Simple Fortran 90 function that uses the shared.f90 module.
Additional Presentations
"Binding With Other Languages (Additional Resources)": These slides give exercises/examples for Fortran as well as C, including the f2py and ctypes package/module (Powerpoint | PDF).