[restored issue] - Fortran90 interface should work
Hi,
I'm facing the following issue when trying to build a fortran example with the maphys++ fortran driver
[ 16%] Building Fortran object CMakeFiles/test_driver_f.dir/test_driverf.F90.o
/usr/bin/gfortran -DHAVE_LAPACK_CONFIG_H -DLAPACK_COMPLEX_CPP -DMAPHYSPP_USE_ARPACK -DMAPHYSPP_USE_EIGEN -DMAPHYSPP_USE_FABULOUS -DMAPHYSPP_USE_MUMPS -DMAPHYSPP_USE_PASTIX -I/home/florent/git/maphyspp/build/install/include -I/home/florent/git/blaspp/build/install/include -I/home/florent/git/lapackpp/build/install/include -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -I/usr/lib/x86_64-linux-gnu/openmpi/include -I/home/florent/git/pastix/pastix/build/install/include -I/usr/include/x86_64-linux-gnu -I/usr/include/scotch -I/usr/include -I/usr/include/eigen3 -I/home/florent/git/fabulous/build/install/include -I/home/florent/git/arpack-ng/build/install/include/arpack -I/usr/lib/x86_64-linux-gnu/openmpi/lib -pthread -c /home/florent/git/distrib/cmake/test/maphys++/test_driverf.F90 -o CMakeFiles/test_driver_f.dir/test_driverf.F90.o
/home/florent/git/distrib/cmake/test/maphys++/test_driverf.F90:23:25:
23 | type(maphyspp_matrix_t), target :: A
| 1
Error: Derived type ‘maphyspp_matrix_t’ at (1) is being used before it is defined
/home/florent/git/distrib/cmake/test/maphys++/test_driverf.F90:24:25:
24 | type(maphyspp_vector_t), target :: B, X
| 1
Error: Derived type ‘maphyspp_vector_t’ at (1) is being used before it is defined
/home/florent/git/distrib/cmake/test/maphys++/test_driverf.F90:47:4:
47 | A%m = M
| 1
Error: Symbol ‘a’ at (1) has no IMPLICIT type
see https://gitlab.inria.fr/solverstack/distrib/-/tree/master/cmake/test/maphys%2B%2B
Warning: this issue has been restored from backup and can have been changed. For example, all comments have been lost.