I used this way as well and found it to be the least problematic.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Interfacing Fortran code from Python | 16 | 5503 | October 6, 2021 | |
|
Types from Fortran to Python via Opaque Pointers
|
29 | 1281 | November 20, 2023 | |
|
Examples: iso_c_binding calling Fortran from C
|
6 | 1837 | August 11, 2022 | |
| Interact with python -- f2py or ctypes? | 7 | 2676 | July 30, 2021 | |
| Modern interface to interpreted languages | 3 | 518 | December 21, 2021 |