Closed oxcrow closed 1 month ago
I tried to compile with Intel's ifort compiler, and the code compiles correctly.
Seems like, the compilation error is only in gfortran, possibly due to some missing Fortran 2018 feature.
Since gfortran is the most widely used Fortran compiler, could it be supported?
Here is the log,
I fixed the issue by modifying the code.
Kindly add this git diff patch to fmetis, if it seems correct to you.
The code compiles correctly now, but there are some warnings regarding uninitialized values.
In future, they can potentially cause bugs.
See issue https://github.com/ivan-pi/fmetis/issues/2.
Strictly speaking, you can just ditch the metis_oo_interface.f90
file. It doesn't offer much extra functionality.
The code compiles correctly now, but there are some warnings regarding uninitialized values.
Those are false positives that have to do with allocation on assignment (a F2018 feature). You can turn the warnings off with -Wno-uninitialized
. A discussion of the issue can be found here: https://fortran-lang.discourse.group/t/gfortran-uninitialized-warnings/3838/2
I noticed that the issue has been fixed with your recent commits.
Thanks!
I will close this issue then, since it's resolved.
Hello,
I'm trying to compile fmetis using gfortran 13.2.0, but the code doesn't compile for some reason.
The first compilation error happens in
metis_oo_interface.f90
, for expressioncase(b'000')
on line 122.Here is the error log ...
Error Log (after running cmake and make)
``` ~/work/nmx/lib/ext/fmetis/build master ✔ » cmake .. CMake Deprecation Warning at CMakeLists.txt:2 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Update the VERSION argument