James Kermode
James Kermode
Think I've figured this out. Once the PR passes for both pre- and post- Py 3.11 I'll do a new release you can use for conda-forge.
Seems to work. v0.2.11 is being built and released now, should be on PyPI in 30 mins or so. This still leaves #169, Windows support.
The second request, to create classes from functions which "look like" methods is already supported. See the `--move-methods` command line argument to `f90wrap`. Wrappers for functions/subroutines with a derived type...
As far as I know no-one is working on this, but pull requests would be welcome!
Sure - see for example https://github.com/libAtoms/QUIP/blob/public/quippy/Makefile#L96 You can simply pass `-l` and `-L` options to `f2py-f90wrap` to link to additional libraries.
Yes. that's all you need - just compile your code with OpenMP as usual (`-fopenmp` or similar) and link to the required libraries. Then if you set `OMP_NUM_THREADS` to something...
Ah yes, `-fPIC` is required. If you link against dynamic (.so) rather than static (.a) libraries this will not be an issue.
This is a proposed fix, as explained in the discussion at #131 ```diff diff --git a/f90wrap/pywrapgen.py b/f90wrap/pywrapgen.py index 3657ad0..4b95994 100644 --- a/f90wrap/pywrapgen.py +++ b/f90wrap/pywrapgen.py @@ -380,6 +380,7 @@ except ValueError:...
Ok, thanks for testing. I’ll try to run it myself soon. I think it it still related to the automated destructor, but must be slightly more subtle.
Quick update: I've reproduced the issue, and hope to find a fix soon.