1.1. Comment all module
, contains
, ... statements;
1.2. See Using FYPP for binding generic interfaces
--f90flags=-ffixed-form
, but not all versions of Numpy (f2py) will work stably. It might be worth converting the file to a free form.Jupyter Notebook with your code: https://github.com/Serge3leo/temp-cola/blob/main/stackoverflow-79661744.ipynb