Hello everyone, I encountered a problem while compiling the solver. I used the command:
build_mfixsolver --batch --dmp
BUILD SUCCESSFUL was displayed, but two files, mfixsolver. sh and mfixsolver. so, were generated instead of mfixsolver. Attempting to run these two files was also unsuccessful.
My linux system is Ubuntu 18.04, MFiX version is 23.1.1, and a part of the output of the compilation process is as follows:
Building custom solver for Reaction.mfx
Running cmake command:
cmake -DENABLE_PYMFIX=ON -DENABLE_MPI=1 -G “Unix Makefiles” -DCMAKE_INSTALL_PREFIX=/home/southeast368/MFiX_work/Test -DUDF_DIR=/home/southeast368/MFiX_work/Test -DVERSION=23.1.1 /home/southeast368/anaconda3/envs/mfix-23.1.1/share/mfix/src
– Setting build type to ‘RelWithDebInfo’ as none was specified.
– MFIX build settings summary:
– Build type = RelWithDebInfo
– CMake version = 3.26.4
– Fortran compiler =
– Fortran flags =
– ENABLE_MPI = 1
– ENABLE_OpenMP = OFF
– ENABLE_CTEST = OFF
– ENABLE_COVERAGE = OFF
– The Fortran compiler identification is GNU 7.5.0
– The C compiler identification is GNU 7.5.0
– Detecting Fortran compiler ABI info
– Detecting Fortran compiler ABI info - done
– Check for working Fortran compiler: /usr/bin/f95 - skipped
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Check for working C compiler: /usr/bin/cc - skipped
– Detecting C compile features
– Detecting C compile features - done
– Performing Test ffpe_trap
– Performing Test ffpe_trap - Success
– Performing Test ffpe_summary
– Performing Test ffpe_summary - Success
– Found MPI_C: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so (found version “3.1”)
– Found MPI_Fortran: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_usempif08.so (found version “3.1”)
– Found MPI: TRUE (found version “3.1”)
– Found Git: /home/southeast368/anaconda3/envs/mfix-23.1.1/bin/git (found version “2.40.1”)
– Found PythonInterp: /home/southeast368/anaconda3/envs/mfix-23.1.1/bin/python (found version “3.10.11”)
Found UDFs:
/home/southeast368/MFiX_work/Test/usr_rates.f;/home/southeast368/MFiX_work/Test/species.inc
– Found Python: /home/southeast368/anaconda3/envs/mfix-23.1.1/bin/python
– Configuring done (2.6s)
– Generating done (0.1s)
– Build files have been written to: /home/southeast368/MFiX_work/Test/build
Build command:
cmake --build . --target install
…
[100%] Built target Merge_UDF
[100%] Building Fortran object CMakeFiles/mfixsolver_ext.dir/model/dummy.f.o
[100%] Building C object CMakeFiles/mfixsolver_ext.dir/model/gfortran_init.c.o
[100%] Linking Fortran shared library mfixsolver.so
[100%] Built target mfixsolver_ext
Install the project…
– Install configuration: “RelWithDebInfo”
– Installing: /home/southeast368/MFiX_work/Test/mfixsolver.so
– Set runtime path of “/home/southeast368/MFiX_work/Test/mfixsolver.so” to “”
– Installing: /home/southeast368/MFiX_work/Test/mfixsolver.sh
BUILD SUCCESSFUL
So how can I successfully create mfixsolver?
Thank you all!
Pan