Using f2py on a Fortran code linked to PETSc
问题 My question is related to this post: Including a compiled module in module that is wrapped with f2py (Minimum working example)? in which the poster was trying to compile a Fortran code (Test.f90) with f2py and link that to a pre-compiled library (or in my case, object, myex44f.o). The answer enabled me to compile the Fortran code and generated the python module. My problem is different from the above posters problem in that my object is linked to PETSc. When I try to import my f2py-generated