├── .gitignore ├── CMakeLists.txt ├── README.md ├── cmake ├── FindCython.cmake ├── FindF2PY.cmake ├── FindNumPy.cmake ├── FindPythonExtensions.cmake ├── UseCython.cmake ├── UseF2PY.cmake ├── UsePythonExtensions.cmake └── targetLinkLibrariesWithDynamicLookup.cmake ├── fortran_cython_examples └── __init__.py ├── notes.ipynb ├── notes ├── general.md └── getters_setters.md ├── pyproject.toml ├── setup.py ├── src ├── CMakeLists.txt ├── _fortran_cython_examples.pyx ├── characters │ ├── CMakeLists.txt │ ├── characters.f90 │ ├── characters.h │ ├── characters.pyx │ └── characters_wrapper.f90 ├── derived_type │ ├── CMakeLists.txt │ ├── derived_type.f90 │ ├── derived_type.h │ ├── derived_type.pyx │ └── derived_type_wrapper.f90 ├── dtype1 │ ├── CMakeLists.txt │ ├── dtype1.f90 │ ├── dtype1.pyx │ ├── dtype1_pxd.pxd │ ├── dtype1_wrapper.f90 │ └── dtype1_wrapper.h ├── module_variable │ ├── CMakeLists.txt │ ├── module_variable.f90 │ ├── module_variable.pyx │ ├── module_variable_pxd.pxd │ ├── module_variable_wrapper.f90 │ └── module_variable_wrapper.h ├── simple_function │ ├── CMakeLists.txt │ ├── simple_function.f90 │ ├── simple_function.h │ ├── simple_function.pyx │ └── simple_function_wrapper.f90 └── simple_subroutine │ ├── CMakeLists.txt │ ├── simple_subroutine.f90 │ ├── simple_subroutine.h │ ├── simple_subroutine.pyx │ └── simple_subroutine_wrapper.f90 └── tests ├── test_characters.py ├── test_derived_type.py ├── test_module_variable.py ├── test_simple_function.py └── test_simple_subroutine.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/.gitignore -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/README.md -------------------------------------------------------------------------------- /cmake/FindCython.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/cmake/FindCython.cmake -------------------------------------------------------------------------------- /cmake/FindF2PY.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/cmake/FindF2PY.cmake -------------------------------------------------------------------------------- /cmake/FindNumPy.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/cmake/FindNumPy.cmake -------------------------------------------------------------------------------- /cmake/FindPythonExtensions.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/cmake/FindPythonExtensions.cmake -------------------------------------------------------------------------------- /cmake/UseCython.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/cmake/UseCython.cmake -------------------------------------------------------------------------------- /cmake/UseF2PY.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/cmake/UseF2PY.cmake -------------------------------------------------------------------------------- /cmake/UsePythonExtensions.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/cmake/UsePythonExtensions.cmake -------------------------------------------------------------------------------- /cmake/targetLinkLibrariesWithDynamicLookup.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/cmake/targetLinkLibrariesWithDynamicLookup.cmake -------------------------------------------------------------------------------- /fortran_cython_examples/__init__.py: -------------------------------------------------------------------------------- 1 | from ._fortran_cython_examples import * -------------------------------------------------------------------------------- /notes.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/notes.ipynb -------------------------------------------------------------------------------- /notes/general.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/notes/general.md -------------------------------------------------------------------------------- /notes/getters_setters.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/notes/getters_setters.md -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/pyproject.toml -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/setup.py -------------------------------------------------------------------------------- /src/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/CMakeLists.txt -------------------------------------------------------------------------------- /src/_fortran_cython_examples.pyx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/_fortran_cython_examples.pyx -------------------------------------------------------------------------------- /src/characters/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/characters/CMakeLists.txt -------------------------------------------------------------------------------- /src/characters/characters.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/characters/characters.f90 -------------------------------------------------------------------------------- /src/characters/characters.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/characters/characters.h -------------------------------------------------------------------------------- /src/characters/characters.pyx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/characters/characters.pyx -------------------------------------------------------------------------------- /src/characters/characters_wrapper.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/characters/characters_wrapper.f90 -------------------------------------------------------------------------------- /src/derived_type/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/derived_type/CMakeLists.txt -------------------------------------------------------------------------------- /src/derived_type/derived_type.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/derived_type/derived_type.f90 -------------------------------------------------------------------------------- /src/derived_type/derived_type.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/derived_type/derived_type.h -------------------------------------------------------------------------------- /src/derived_type/derived_type.pyx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/derived_type/derived_type.pyx -------------------------------------------------------------------------------- /src/derived_type/derived_type_wrapper.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/derived_type/derived_type_wrapper.f90 -------------------------------------------------------------------------------- /src/dtype1/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/dtype1/CMakeLists.txt -------------------------------------------------------------------------------- /src/dtype1/dtype1.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/dtype1/dtype1.f90 -------------------------------------------------------------------------------- /src/dtype1/dtype1.pyx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/dtype1/dtype1.pyx -------------------------------------------------------------------------------- /src/dtype1/dtype1_pxd.pxd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/dtype1/dtype1_pxd.pxd -------------------------------------------------------------------------------- /src/dtype1/dtype1_wrapper.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/dtype1/dtype1_wrapper.f90 -------------------------------------------------------------------------------- /src/dtype1/dtype1_wrapper.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/dtype1/dtype1_wrapper.h -------------------------------------------------------------------------------- /src/module_variable/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/module_variable/CMakeLists.txt -------------------------------------------------------------------------------- /src/module_variable/module_variable.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/module_variable/module_variable.f90 -------------------------------------------------------------------------------- /src/module_variable/module_variable.pyx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/module_variable/module_variable.pyx -------------------------------------------------------------------------------- /src/module_variable/module_variable_pxd.pxd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/module_variable/module_variable_pxd.pxd -------------------------------------------------------------------------------- /src/module_variable/module_variable_wrapper.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/module_variable/module_variable_wrapper.f90 -------------------------------------------------------------------------------- /src/module_variable/module_variable_wrapper.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/module_variable/module_variable_wrapper.h -------------------------------------------------------------------------------- /src/simple_function/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/simple_function/CMakeLists.txt -------------------------------------------------------------------------------- /src/simple_function/simple_function.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/simple_function/simple_function.f90 -------------------------------------------------------------------------------- /src/simple_function/simple_function.h: -------------------------------------------------------------------------------- 1 | int myfunc_wrapper(int *a); -------------------------------------------------------------------------------- /src/simple_function/simple_function.pyx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/simple_function/simple_function.pyx -------------------------------------------------------------------------------- /src/simple_function/simple_function_wrapper.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/simple_function/simple_function_wrapper.f90 -------------------------------------------------------------------------------- /src/simple_subroutine/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/simple_subroutine/CMakeLists.txt -------------------------------------------------------------------------------- /src/simple_subroutine/simple_subroutine.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/simple_subroutine/simple_subroutine.f90 -------------------------------------------------------------------------------- /src/simple_subroutine/simple_subroutine.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/simple_subroutine/simple_subroutine.h -------------------------------------------------------------------------------- /src/simple_subroutine/simple_subroutine.pyx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/simple_subroutine/simple_subroutine.pyx -------------------------------------------------------------------------------- /src/simple_subroutine/simple_subroutine_wrapper.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/src/simple_subroutine/simple_subroutine_wrapper.f90 -------------------------------------------------------------------------------- /tests/test_characters.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/tests/test_characters.py -------------------------------------------------------------------------------- /tests/test_derived_type.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/tests/test_derived_type.py -------------------------------------------------------------------------------- /tests/test_module_variable.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/tests/test_module_variable.py -------------------------------------------------------------------------------- /tests/test_simple_function.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/tests/test_simple_function.py -------------------------------------------------------------------------------- /tests/test_simple_subroutine.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nicholaswogan/fortran-cython-examples/HEAD/tests/test_simple_subroutine.py --------------------------------------------------------------------------------