Hello,
I use mfix-21.4and I want to run the case Absorption in the tutorial. However, when I built the solver by button in GUI, it reported error:
This is old cmake_args
[’-DMPI_Fortran_COMPILER=mpiifort’, ‘-DENABLE_PYMFIX=ON’, ‘-DPython3_EXECUTABLE=/ncsfs02/bychen/anaconda3/envs/mfix-21.4/bin/python3.8’, ‘-DPython3_ROOT_DIR=/ncsfs02/bychen/anaconda3/envs/mfix-21.4’, ‘-DENABLE_MPI=1’]
new cmake_args has been changed to:
[’-DMPI_Fortran_COMPILER=mpiifort’, ‘-DENABLE_PYMFIX=ON’, ‘-DPython3_EXECUTABLE=/ncsfs02/bychen/anaconda3/envs/mfix-21.4/bin/python3.8’, ‘-DPython3_ROOT_DIR=/ncsfs02/bychen/anaconda3/envs/mfix-21.4’, ‘-DENABLE_MPI=1’, ‘-DMPI_C_COMPILER=/opt/intel/impi/4.1.1.036/intel64/bin/mpicc’, ‘-DMPI_CXX_COMPILER=/opt/intel/impi/4.1.1.036/intel64/bin/mpicxx’]
done modifying
Building custom solver for Absorption_column_2d3.17.mfx
Running cmake command:
cmake -DMPI_Fortran_COMPILER=mpiifort -DENABLE_PYMFIX=ON -DPython3_EXECUTABLE=/ncsfs02/bychen/anaconda3/envs/mfix-21.4/bin/python3.8 -DPython3_ROOT_DIR=/ncsfs02/bychen/anaconda3/envs/mfix-21.4 -DENABLE_MPI=1 -DMPI_C_COMPILER=/opt/intel/impi/4.1.1.036/intel64/bin/mpicc -DMPI_CXX_COMPILER=/opt/intel/impi/4.1.1.036/intel64/bin/mpicxx -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/ncsfs02/bychen/case/Absorption_column_2d3.17 -DUDF_DIR=/ncsfs02/bychen/case/Absorption_column_2d3.17 -DVERSION=21.4 /ncsfs02/bychen/anaconda3/envs/mfix-21.4/share/mfix/src
– Setting build type to ‘RelWithDebInfo’ as none was specified.
– MFIX build settings summary:
– Build type = RelWithDebInfo
– CMake version = 3.22.3
– Fortran compiler =
– Fortran flags =
– ENABLE_MPI = 1
– ENABLE_OpenMP = OFF
– ENABLE_CTEST = OFF
– ENABLE_COVERAGE = OFF
– The C compiler identification is GNU 7.3.0
– The Fortran compiler identification is GNU 7.3.0
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Check for working C compiler: /ncsfs02/bychen/gcc-7.3/bin/gcc - skipped
– Detecting C compile features
– Detecting C compile features - done
– Detecting Fortran compiler ABI info
– Detecting Fortran compiler ABI info - done
– Check for working Fortran compiler: /ncsfs02/bychen/gcc-7.3/bin/gfortran - skipped
CMake Warning (dev) at model/CMakeLists.txt:617 (find_package):
Policy CMP0074 is not set: find_package uses _ROOT variables.
Run “cmake --help-policy CMP0074” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Environment variable MPI_ROOT is set to:
/opt/intel/impi/4.1.1.036
For compatibility, CMake is ignoring the variable.
This warning is for project developers. Use -Wno-dev to suppress it.
– Found MPI_C: /opt/intel/impi/4.1.1.036/intel64/lib/libmpigf.so (found version “2.2”)
– Found MPI_Fortran: /opt/intel/impi/4.1.1.036/intel64/lib/libmpigf.so (found version “2.2”)
– Found MPI: TRUE (found version “2.2”)
– Found Git: /ncsfs02/bychen/anaconda3/envs/mfix-21.4/bin/git (found version “2.35.1”)
– Found PythonInterp: /ncsfs02/bychen/anaconda3/envs/mfix-21.4/bin/python (found version “3.8.12”)
Found UDFs:
/ncsfs02/bychen/case/Absorption_column_2d3.17/chemical_equilibrium_m.f;/ncsfs02/bychen/case/Absorption_column_2d3.17/newton_raphson_m.f;/ncsfs02/bychen/case/Absorption_column_2d3.17/reactions_mea_m.f;/ncsfs02/bychen/case/Absorption_column_2d3.17/usr0.f;/ncsfs02/bychen/case/Absorption_column_2d3.17/usr1.f;/ncsfs02/bychen/case/Absorption_column_2d3.17/usr2.f;/ncsfs02/bychen/case/Absorption_column_2d3.17/usr_drag.f;/ncsfs02/bychen/case/Absorption_column_2d3.17/usr_init_namelist.f;/ncsfs02/bychen/case/Absorption_column_2d3.17/usr_mod.f;/ncsfs02/bychen/case/Absorption_column_2d3.17/usr_properties.f;/ncsfs02/bychen/case/Absorption_column_2d3.17/usr_rates.f;/ncsfs02/bychen/case/Absorption_column_2d3.17/usr_sources.f;/ncsfs02/bychen/case/Absorption_column_2d3.17/write_usr1.f;/ncsfs02/bychen/anaconda3/envs/mfix-21.4/share/mfix/src/model/usr_read_namelist.f;/ncsfs02/bychen/case/Absorption_column_2d3.17/species.inc
– Found Python3: /ncsfs02/bychen/anaconda3/envs/mfix-21.4/bin/python3.8 (found version “3.8.12”) found components: Interpreter NumPy Development.Module
– Configuring done
– Generating done
– Build files have been written to: /ncsfs02/bychen/case/Absorption_column_2d3.17/build
Build command:
cmake --build . --target install
Scanning dependencies of target mfixcore
[ 0%] Building Fortran object model/CMakeFiles/mfixcore.dir/dmp_modules/compar_mod.f.o
f951: Fatal Error: Reading module mpi at line 1 column 2: Unexpected EOF
compilation terminated.
gmake[2]: *** [model/CMakeFiles/mfixcore.dir/dmp_modules/compar_mod.f.o] Error 1
gmake[1]: *** [model/CMakeFiles/mfixcore.dir/all] Error 2
gmake: *** [all] Error 2
BUILD FAILED
==========================================================================
what’s the problem?
Thank you very much for your help!