fortwrap
fortwrap copied to clipboard
Minor bugfixes and automation of PyBind11 bindings
Edit: We are maintaining a fork at https://github.com/thermotools, and are also automating generation of pybind11 bindings for the C++ wrapper :)
Hi,
It looks like we may be adopting this for our project :) If we do, we will be maintaining a fork at https://github.com/thermotools.
While I was testing it I made some modifications:
- Added
setup.pyand moved some files so thatpipcan be easily utilized. - Added sorting of modules before writing
FortranISOWrappers.f90, so that modules are compiled in order of dependency. Also fixed bug where modules did not properly include each other. - Added name sanitizing before writing c++ interface, to prevent argument names that are reserved keywords in C++
- Made the
ConfigFileparser also read command-line arguments - Added code to generate a binding module for
PyBind11(still very experimental, may need manual modifications after being generated.)