-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Hi @ivan-pi,
I am currently working on metis and mpi libraries to optimize our hydrological system modelling; all the codes. tools and modules are freely available on github at https://github.com/c-hydro.
(1)
To compile your fmetis libraries i had to add the gklib to the linking process;
cmake .. -DCMAKE_Fortran_COMPILER=gfortran -DMETIS_LIB="$HOME/metis_workspace/lib/libmetis.a" -DGK_LIB="$HOME/metis_workspace/lib/libGKlib.a" -DCMAKE_INSTALL_PREFIX="$HOME/metis_interface/"
(2)
and I added the GK_LIB in the CMAKE file too (ll 74-75):
add_library(fmetis src/lib/metis_interface.f90 src/lib/metis_oo_interface.f90)
target_link_libraries(fmetis ${METIS_LIB} ${GK_LIB})
Some tests failed, but I am using the libraries to interface my simple metis fortran program to the metis library.
This probably is due to the the new (?) approach to compile metis that, if I correctly understood, it is divided in two parts:
(1) gklib
...
make config cc=gcc prefix="$HOME/metis_workspace" openmp=set
make install
(2) metis
...
make config r64=1 i64=1 cc=gcc gdb=1 gklib_path=$HOME/metis_workspace/ prefix=$HOME/metis_workspace/
make install
Is it correctly or I missed some remarks or suggestions?
I hope I am not wasting your time with unuseful comments or questions
All the best
Fabio