We tried to install on our cluster the latest mfix and compile in dmp using the command that worked for 18.1.5, however it did not work this time. It seems that the FC flag is not recognized?
Please see below:
build_mfixsolver --batch --dmp FC=mpiifort -DMPI_Fortran_COMPILER=mpiifort
Building custom solver for vortex_shedding_fld_2d.mfx
Running cmake command:
– Setting build type to ‘RelWithDebInfo’ as none was specified.
– MFIX build settings summary:
– Build type = RelWithDebInfo
– CMake version = 3.14.0
– Fortran compiler =
– Fortran flags =
– ENABLE_MPI = 1
– ENABLE_OpenMP = OFF
– ENABLE_NETCDF = OFF
– ENABLE_CTEST = OFF
– ENABLE_COVERAGE = OFF
– The Fortran compiler identification is GNU 4.8.5
– Check for working Fortran compiler: /usr/bin/f95
– Check for working Fortran compiler: /usr/bin/f95 – works
– Detecting Fortran compiler ABI info
– Detecting Fortran compiler ABI info - done
– Checking whether /usr/bin/f95 supports Fortran 90
– Checking whether /usr/bin/f95 supports Fortran 90 – yes
– Found MPI_Fortran: /gpfs/packages/intel/compilers_and_libraries_2017.8.262/linux/mpi/intel64/lib/libmpifort.so (found version “3.1”)
– Found MPI: TRUE (found version “3.1”)
– Found Git: /usr/bin/git (found version “1.8.3.1”)
– Configuring done
– Generating done
CMake Warning:
Manually-specified variables were not used by the project:
Python3_ROOT_DIR
– Build files have been written to: /gpfs/projects/dufeklab/dufek/vortex_shedding_fld_2d/build
Running make command:
make install
Scanning dependencies of target mfixcore
[ 0%] Building Fortran object model/CMakeFiles/mfixcore.dir/dmp_modules/compar_mod.f.o
/home/dufek/anaconda3/envs/mfix-19.3.1/share/mfix/src/model/dmp_modules/compar_mod.f:18.12:
USE mpi
1
Fatal Error: File ‘mpi.mod’ opened at (1) is not a GNU Fortran module file
make[2]: *** [model/CMakeFiles/mfixcore.dir/dmp_modules/compar_mod.f.o] Error 1
make[1]: *** [model/CMakeFiles/mfixcore.dir/all] Error 2
make: *** [all] Error 2
The MPI_Fortran_COMPILER option is no longer required (I should have added a CMake warning to warn the user when it’s used! I’ll add that in the next release).
CMake does not look at the FC option, instead set it as an environment variable:
> env FC=mpiifort build_mfixsolver --batch --dmp
If your intel/17 module sets the environment variable FC=mpiifort for you, then the following ought to work:
> build_mfixsolver --batch --dmp
(The Python3_ROOT_DIR is unrelated but should be removed. I will also remove from the next release, thanks!)
– Setting build type to ‘RelWithDebInfo’ as none was specified.
– MFIX build settings summary:
– Build type = RelWithDebInfo
– CMake version = 3.17.2
– Fortran compiler =
– Fortran flags =
– ENABLE_MPI = 1
– ENABLE_OpenMP = OFF
– ENABLE_CTEST = OFF
– ENABLE_COVERAGE = OFF
– The C compiler identification is GNU 5.3.0
– The Fortran compiler identification is GNU 5.3.0
– Check for working C compiler: C:/ProgramData/Anaconda3/envs/mfix-20.2.1/Library/mingw-w64/bin/gcc.exe
– Check for working C compiler: C:/ProgramData/Anaconda3/envs/mfix-20.2.1/Library/mingw-w64/bin/gcc.exe - works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Detecting C compile features
– Detecting C compile features - done
– Check for working Fortran compiler: C:/ProgramData/Anaconda3/envs/mfix-20.2.1/Library/mingw-w64/bin/gfortran.exe
– Check for working Fortran compiler: C:/ProgramData/Anaconda3/envs/mfix-20.2.1/Library/mingw-w64/bin/gfortran.exe - works
– Detecting Fortran compiler ABI info
– Detecting Fortran compiler ABI info - done
– Checking whether C:/ProgramData/Anaconda3/envs/mfix-20.2.1/Library/mingw-w64/bin/gfortran.exe supports Fortran 90
– Checking whether C:/ProgramData/Anaconda3/envs/mfix-20.2.1/Library/mingw-w64/bin/gfortran.exe supports Fortran 90 - yes
– Could NOT find MPI_C (missing: MPI_C_LIB_NAMES MPI_C_HEADER_DIR MPI_C_WORKS)
– Could NOT find MPI_Fortran (missing: MPI_Fortran_LIB_NAMES MPI_Fortran_F77_HEADER_DIR MPI_Fortran_MODULE_DIR MPI_Fortran_WORKS)
CMake Error at C:/ProgramData/Anaconda3/envs/mfix-20.2.1/Library/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
Could NOT find MPI (missing: MPI_C_FOUND MPI_Fortran_FOUND)
Reason given by package: MPI component 'CXX' was requested, but language CXX is not enabled.
– Configuring incomplete, errors occurred!
See also “D:/mfix_file/spink74_test/build/CMakeFiles/CMakeOutput.log”.
See also “D:/mfix_file/spink74_test/build/CMakeFiles/CMakeError.log”.