├── .gitignore ├── ChangeLog.md ├── LICENSE.txt ├── README.md ├── add_test.sh ├── docs └── manual.md ├── fortwrap.py ├── remove_err_logs.sh ├── run_tests.py └── tests ├── Tests.mk ├── arrays ├── Makefile ├── arrays.f90 └── prog.cpp ├── c_arrays ├── Makefile ├── c_arrays.f90 └── prog.cpp ├── c_ptrs ├── Makefile ├── c_ptrs.f90 └── prog.cpp ├── class_pointers ├── Makefile ├── class_pointers.f90 └── prog.cpp ├── classes ├── Makefile ├── classes.f90 └── prog.cpp ├── classes_debug ├── Makefile ├── manual_testing │ ├── CppWrappers.f90 │ ├── InterfaceDefs.h │ ├── Makefile │ ├── Shape.cpp │ ├── Shape.h │ ├── cpptest.cpp │ ├── ctest.c │ ├── ftest.f90 │ └── shapes.f90 ├── notes.org ├── prog.cpp └── shapes.f90 ├── comments └── comments.f90 ├── complex ├── Makefile ├── complex.f90 └── prog.cpp ├── derived_types ├── DerivedTypes.f90 ├── Makefile └── prog.cpp ├── enumerations ├── Makefile ├── enumerations.f90 └── prog.cpp ├── function_pointers ├── Makefile ├── func_pointers.f90 └── prog.cpp ├── integers ├── Makefile ├── integers.f90 └── prog.cpp ├── interface_file ├── Makefile ├── interface.i ├── prog.cpp └── source.f90 ├── logicals ├── Makefile ├── logicals.f90 └── prog.cpp ├── matrices ├── Makefile ├── matrices.f90 └── prog.cpp ├── multidim_arrays ├── Makefile ├── multidim_arrays.f90 └── prog.cpp ├── no_module ├── Makefile ├── no_module.f90 └── prog.cpp ├── optional_args ├── Makefile ├── opt_args.f90 └── prog.cpp ├── orphans ├── Makefile ├── orphans.f90 └── prog.cpp ├── pointers ├── Makefile ├── pointers.f90 └── prog.cpp ├── reals ├── Makefile ├── prog.cpp └── reals.f90 ├── strings ├── Makefile ├── prog.cpp └── strings.f90 ├── strings2 ├── Makefile ├── prog.cpp └── strings2.f90 └── syntax ├── Makefile ├── prog.cpp └── syntax.f90 /.gitignore: -------------------------------------------------------------------------------- 1 | *.mod 2 | *.o 3 | wrap/ 4 | prog 5 | *.exe -------------------------------------------------------------------------------- /ChangeLog.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/ChangeLog.md -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/README.md -------------------------------------------------------------------------------- /add_test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/add_test.sh -------------------------------------------------------------------------------- /docs/manual.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/docs/manual.md -------------------------------------------------------------------------------- /fortwrap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/fortwrap.py -------------------------------------------------------------------------------- /remove_err_logs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | find . -name "FortWrap-error.txt" -exec rm -f {} \; -------------------------------------------------------------------------------- /run_tests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/run_tests.py -------------------------------------------------------------------------------- /tests/Tests.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/Tests.mk -------------------------------------------------------------------------------- /tests/arrays/Makefile: -------------------------------------------------------------------------------- 1 | include ../Tests.mk 2 | 3 | -------------------------------------------------------------------------------- /tests/arrays/arrays.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/arrays/arrays.f90 -------------------------------------------------------------------------------- /tests/arrays/prog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/arrays/prog.cpp -------------------------------------------------------------------------------- /tests/c_arrays/Makefile: -------------------------------------------------------------------------------- 1 | include ../Tests.mk 2 | 3 | -------------------------------------------------------------------------------- /tests/c_arrays/c_arrays.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/c_arrays/c_arrays.f90 -------------------------------------------------------------------------------- /tests/c_arrays/prog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/c_arrays/prog.cpp -------------------------------------------------------------------------------- /tests/c_ptrs/Makefile: -------------------------------------------------------------------------------- 1 | include ../Tests.mk 2 | 3 | -------------------------------------------------------------------------------- /tests/c_ptrs/c_ptrs.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/c_ptrs/c_ptrs.f90 -------------------------------------------------------------------------------- /tests/c_ptrs/prog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/c_ptrs/prog.cpp -------------------------------------------------------------------------------- /tests/class_pointers/Makefile: -------------------------------------------------------------------------------- 1 | include ../Tests.mk 2 | 3 | -------------------------------------------------------------------------------- /tests/class_pointers/class_pointers.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/class_pointers/class_pointers.f90 -------------------------------------------------------------------------------- /tests/class_pointers/prog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/class_pointers/prog.cpp -------------------------------------------------------------------------------- /tests/classes/Makefile: -------------------------------------------------------------------------------- 1 | include ../Tests.mk 2 | 3 | -------------------------------------------------------------------------------- /tests/classes/classes.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/classes/classes.f90 -------------------------------------------------------------------------------- /tests/classes/prog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/classes/prog.cpp -------------------------------------------------------------------------------- /tests/classes_debug/Makefile: -------------------------------------------------------------------------------- 1 | include ../Tests.mk 2 | 3 | -------------------------------------------------------------------------------- /tests/classes_debug/manual_testing/CppWrappers.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/classes_debug/manual_testing/CppWrappers.f90 -------------------------------------------------------------------------------- /tests/classes_debug/manual_testing/InterfaceDefs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/classes_debug/manual_testing/InterfaceDefs.h -------------------------------------------------------------------------------- /tests/classes_debug/manual_testing/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/classes_debug/manual_testing/Makefile -------------------------------------------------------------------------------- /tests/classes_debug/manual_testing/Shape.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/classes_debug/manual_testing/Shape.cpp -------------------------------------------------------------------------------- /tests/classes_debug/manual_testing/Shape.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/classes_debug/manual_testing/Shape.h -------------------------------------------------------------------------------- /tests/classes_debug/manual_testing/cpptest.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/classes_debug/manual_testing/cpptest.cpp -------------------------------------------------------------------------------- /tests/classes_debug/manual_testing/ctest.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/classes_debug/manual_testing/ctest.c -------------------------------------------------------------------------------- /tests/classes_debug/manual_testing/ftest.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/classes_debug/manual_testing/ftest.f90 -------------------------------------------------------------------------------- /tests/classes_debug/manual_testing/shapes.f90: -------------------------------------------------------------------------------- 1 | ../shapes.f90 -------------------------------------------------------------------------------- /tests/classes_debug/notes.org: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/classes_debug/notes.org -------------------------------------------------------------------------------- /tests/classes_debug/prog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/classes_debug/prog.cpp -------------------------------------------------------------------------------- /tests/classes_debug/shapes.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/classes_debug/shapes.f90 -------------------------------------------------------------------------------- /tests/comments/comments.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/comments/comments.f90 -------------------------------------------------------------------------------- /tests/complex/Makefile: -------------------------------------------------------------------------------- 1 | include ../Tests.mk 2 | 3 | -------------------------------------------------------------------------------- /tests/complex/complex.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/complex/complex.f90 -------------------------------------------------------------------------------- /tests/complex/prog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/complex/prog.cpp -------------------------------------------------------------------------------- /tests/derived_types/DerivedTypes.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/derived_types/DerivedTypes.f90 -------------------------------------------------------------------------------- /tests/derived_types/Makefile: -------------------------------------------------------------------------------- 1 | include ../Tests.mk 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /tests/derived_types/prog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/derived_types/prog.cpp -------------------------------------------------------------------------------- /tests/enumerations/Makefile: -------------------------------------------------------------------------------- 1 | include ../Tests.mk 2 | 3 | -------------------------------------------------------------------------------- /tests/enumerations/enumerations.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/enumerations/enumerations.f90 -------------------------------------------------------------------------------- /tests/enumerations/prog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/enumerations/prog.cpp -------------------------------------------------------------------------------- /tests/function_pointers/Makefile: -------------------------------------------------------------------------------- 1 | include ../Tests.mk 2 | 3 | -------------------------------------------------------------------------------- /tests/function_pointers/func_pointers.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/function_pointers/func_pointers.f90 -------------------------------------------------------------------------------- /tests/function_pointers/prog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/function_pointers/prog.cpp -------------------------------------------------------------------------------- /tests/integers/Makefile: -------------------------------------------------------------------------------- 1 | include ../Tests.mk 2 | 3 | -------------------------------------------------------------------------------- /tests/integers/integers.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/integers/integers.f90 -------------------------------------------------------------------------------- /tests/integers/prog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/integers/prog.cpp -------------------------------------------------------------------------------- /tests/interface_file/Makefile: -------------------------------------------------------------------------------- 1 | include ../Tests.mk 2 | 3 | -------------------------------------------------------------------------------- /tests/interface_file/interface.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/interface_file/interface.i -------------------------------------------------------------------------------- /tests/interface_file/prog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/interface_file/prog.cpp -------------------------------------------------------------------------------- /tests/interface_file/source.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/interface_file/source.f90 -------------------------------------------------------------------------------- /tests/logicals/Makefile: -------------------------------------------------------------------------------- 1 | include ../Tests.mk 2 | 3 | -------------------------------------------------------------------------------- /tests/logicals/logicals.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/logicals/logicals.f90 -------------------------------------------------------------------------------- /tests/logicals/prog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/logicals/prog.cpp -------------------------------------------------------------------------------- /tests/matrices/Makefile: -------------------------------------------------------------------------------- 1 | include ../Tests.mk 2 | 3 | -------------------------------------------------------------------------------- /tests/matrices/matrices.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/matrices/matrices.f90 -------------------------------------------------------------------------------- /tests/matrices/prog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/matrices/prog.cpp -------------------------------------------------------------------------------- /tests/multidim_arrays/Makefile: -------------------------------------------------------------------------------- 1 | include ../Tests.mk 2 | 3 | -------------------------------------------------------------------------------- /tests/multidim_arrays/multidim_arrays.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/multidim_arrays/multidim_arrays.f90 -------------------------------------------------------------------------------- /tests/multidim_arrays/prog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/multidim_arrays/prog.cpp -------------------------------------------------------------------------------- /tests/no_module/Makefile: -------------------------------------------------------------------------------- 1 | include ../Tests.mk 2 | 3 | -------------------------------------------------------------------------------- /tests/no_module/no_module.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/no_module/no_module.f90 -------------------------------------------------------------------------------- /tests/no_module/prog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/no_module/prog.cpp -------------------------------------------------------------------------------- /tests/optional_args/Makefile: -------------------------------------------------------------------------------- 1 | include ../Tests.mk 2 | 3 | -------------------------------------------------------------------------------- /tests/optional_args/opt_args.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/optional_args/opt_args.f90 -------------------------------------------------------------------------------- /tests/optional_args/prog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/optional_args/prog.cpp -------------------------------------------------------------------------------- /tests/orphans/Makefile: -------------------------------------------------------------------------------- 1 | include ../Tests.mk 2 | 3 | -------------------------------------------------------------------------------- /tests/orphans/orphans.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/orphans/orphans.f90 -------------------------------------------------------------------------------- /tests/orphans/prog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/orphans/prog.cpp -------------------------------------------------------------------------------- /tests/pointers/Makefile: -------------------------------------------------------------------------------- 1 | include ../Tests.mk 2 | 3 | -------------------------------------------------------------------------------- /tests/pointers/pointers.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/pointers/pointers.f90 -------------------------------------------------------------------------------- /tests/pointers/prog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/pointers/prog.cpp -------------------------------------------------------------------------------- /tests/reals/Makefile: -------------------------------------------------------------------------------- 1 | include ../Tests.mk 2 | 3 | -------------------------------------------------------------------------------- /tests/reals/prog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/reals/prog.cpp -------------------------------------------------------------------------------- /tests/reals/reals.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/reals/reals.f90 -------------------------------------------------------------------------------- /tests/strings/Makefile: -------------------------------------------------------------------------------- 1 | include ../Tests.mk 2 | 3 | -------------------------------------------------------------------------------- /tests/strings/prog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/strings/prog.cpp -------------------------------------------------------------------------------- /tests/strings/strings.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/strings/strings.f90 -------------------------------------------------------------------------------- /tests/strings2/Makefile: -------------------------------------------------------------------------------- 1 | include ../Tests.mk 2 | 3 | -------------------------------------------------------------------------------- /tests/strings2/prog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/strings2/prog.cpp -------------------------------------------------------------------------------- /tests/strings2/strings2.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/strings2/strings2.f90 -------------------------------------------------------------------------------- /tests/syntax/Makefile: -------------------------------------------------------------------------------- 1 | include ../Tests.mk 2 | 3 | -------------------------------------------------------------------------------- /tests/syntax/prog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/syntax/prog.cpp -------------------------------------------------------------------------------- /tests/syntax/syntax.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcfarljm/fortwrap/HEAD/tests/syntax/syntax.f90 --------------------------------------------------------------------------------