Closed smiet closed 3 years ago
Are you installing f90wrap using pip install -U git+https://github.com/zhucaoxiang/f90wrap
?
Thanks @zhucaoxiang, that was the problem! I had forgotten that you had forked this repo. Maybe this could be added to the readme. I could prepare a few lines to add to help future users.
Will the fix be included in future versions of f90wrap?
Warmest regards, Chris
It is in the readme, but not in a clear location. I should find some time to push the forked version back to the official repo.
I am trying to compile the python wrapper for SPEC, but run into a compilation error:
If I look at the file
_skbuild/linux-x86_64-3.8/cmake-build/Utilities/python_wrapper/f90wrap_global_m_fpp.f90:3203:24:
I see that the wrapper has added an underscore_
to the end of the nameallglobal_in_
in the wrapping funciton for the arrayin
(together withim
used for looping over arrays). This is possibly becausein
is a reserved python keyword? Error-throwing code below:(Compare to the wrapping function generated for the array 'im':
which does not contain the underscore.
I have tried with
f90wrap==0.2.7
, and also reverted to0.2.5
, but the error persists. Has anyone else encountered these errors in compiling the wrapper, or does anyone know a workaround, or a flag I need to set?I am using the gfortran compiler and gcc 9.3.0