The case run well in mfix-22.1,but has error in mfix-22.2.2

Hello every one:
I set-up one case which includes a chemistry with the mfix-dem, and the case can run well in the mfix-22.1.
But it meets the error when the solver was built in the mfix-22.2.2, and the prompt as below:

[ 97%] Generating wrapper
[ 97%] Linking Fortran executable mfixsolver.exe
Creating build directory G:/mfix_case/case/0.3test/chem_fluidbed/build/f2pywrappers
{'before': '', 'this': 'use', 'after': ', intrinsic  :: iso_c_binding, only: c_char, c_int, c_size_t, c_null_char '}
{'before': '', 'this': 'use', 'after': ', intrinsic  :: iso_c_binding, only: c_char, c_int, c_size_t '}
{'before': '', 'this': 'use', 'after': ', intrinsic:: iso_c_binding, only: c_int '}
rmbadname1: Replacing "index" with "index_bn".
rmbadname1: Replacing "index" with "index_bn".
rmbadname1: Replacing "index" with "index_bn".
rmbadname1: Replacing "index" with "index_bn".
rmbadname1: Replacing "index" with "index_bn".
rmbadname1: Replacing "index" with "index_bn".
rmbadname1: Replacing "index" with "index_bn".
rmbadname1: Replacing "index" with "index_bn".
get_useparameters: mapping for {'only': 1, 'map': {'start_log': 'start_log', 'end_log': 'end_log'}} not impl.
get_useparameters: mapping for {'only': 1, 'map': {'get_run_id': 'get_run_id'}} not impl.
get_useparameters: mapping for {'only': 1, 'map': {'dim_n': 'dim_n', 'dim_m': 'dim_m'}} not impl.
get_useparameters: mapping for {'only': 1, 'map': {'dim_n': 'dim_n', 'dim_m': 'dim_m'}} not impl.
get_useparameters: mapping for {'only': 1, 'map': {'dim_n': 'dim_n', 'dim_m': 'dim_m'}} not impl.
get_useparameters: mapping for {'only': 1, 'map': {'dim_n': 'dim_n', 'dim_m': 'dim_m'}} not impl.
get_useparameters: mapping for {'only': 1, 'map': {'dim_n': 'dim_n', 'dim_m': 'dim_m'}} not impl.
get_useparameters: mapping for {'only': 1, 'map': {'dim_n': 'dim_n', 'dim_m': 'dim_m'}} not impl.
get_useparameters: mapping for {'only': 1, 'map': {'dim_n': 'dim_n', 'dim_m': 'dim_m'}} not impl.
get_useparameters: mapping for {'only': 1, 'map': {'dim_m': 'dim_m', 'dim_eqs': 'dim_eqs'}} not impl.
get_useparameters: mapping for {'only': 1, 'map': {'dim_m': 'dim_m', 'dim_eqs': 'dim_eqs'}} not impl.
get_useparameters: mapping for {'only': 1, 'map': {'time': 'time', 'tstop': 'tstop'}} not impl.
get_useparameters: mapping for {'only': 1, 'map': {'time': 'time', 'tstop': 'tstop'}} not impl.
get_useparameters: mapping for {'only': 1, 'map': {'time': 'time', 'tstop': 'tstop'}} not impl.
get_useparameters: mapping for {'only': 1, 'map': {'time': 'time', 'tstop': 'tstop'}} not impl.
Traceback (most recent call last):
  File "D:\Anaconda\envs\mfix-22.2.2\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "D:\Anaconda\envs\mfix-22.2.2\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "D:\Anaconda\envs\mfix-22.2.2\lib\site-packages\numpy\f2py\__main__.py", line 5, in <module>
    main()
  File "D:\Anaconda\envs\mfix-22.2.2\lib\site-packages\numpy\f2py\f2py2e.py", line 704, in main
    run_main(sys.argv[1:])
  File "D:\Anaconda\envs\mfix-22.2.2\lib\site-packages\numpy\f2py\f2py2e.py", line 441, in run_main
    postlist = callcrackfortran(files, options)
  File "D:\Anaconda\envs\mfix-22.2.2\lib\site-packages\numpy\f2py\f2py2e.py", line 342, in callcrackfortran
    postlist = crackfortran.crackfortran(files)
  File "D:\Anaconda\envs\mfix-22.2.2\lib\site-packages\numpy\f2py\crackfortran.py", line 3310, in crackfortran
    postlist = traverse(postlist, hook)
  File "D:\Anaconda\envs\mfix-22.2.2\lib\site-packages\numpy\f2py\crackfortran.py", line 3382, in traverse
    new_index, new_item = traverse((index, value), visit,
  File "D:\Anaconda\envs\mfix-22.2.2\lib\site-packages\numpy\f2py\crackfortran.py", line 3390, in traverse
    new_key, new_value = traverse((key, value), visit,
  File "D:\Anaconda\envs\mfix-22.2.2\lib\site-packages\numpy\f2py\crackfortran.py", line 3382, in traverse
    new_index, new_item = traverse((index, value), visit,
  File "D:\Anaconda\envs\mfix-22.2.2\lib\site-packages\numpy\f2py\crackfortran.py", line 3390, in traverse
    new_key, new_value = traverse((key, value), visit,
  File "D:\Anaconda\envs\mfix-22.2.2\lib\site-packages\numpy\f2py\crackfortran.py", line 3382, in traverse
    new_index, new_item = traverse((index, value), visit,
  File "D:\Anaconda\envs\mfix-22.2.2\lib\site-packages\numpy\f2py\crackfortran.py", line 3390, in traverse
    new_key, new_value = traverse((key, value), visit,
  File "D:\Anaconda\envs\mfix-22.2.2\lib\site-packages\numpy\f2py\crackfortran.py", line 3382, in traverse
    new_index, new_item = traverse((index, value), visit,
  File "D:\Anaconda\envs\mfix-22.2.2\lib\site-packages\numpy\f2py\crackfortran.py", line 3390, in traverse
    new_key, new_value = traverse((key, value), visit,
  File "D:\Anaconda\envs\mfix-22.2.2\lib\site-packages\numpy\f2py\crackfortran.py", line 3390, in traverse
    new_key, new_value = traverse((key, value), visit,
  File "D:\Anaconda\envs\mfix-22.2.2\lib\site-packages\numpy\f2py\crackfortran.py", line 3390, in traverse
    new_key, new_value = traverse((key, value), visit,
  File "D:\Anaconda\envs\mfix-22.2.2\lib\site-packages\numpy\f2py\crackfortran.py", line 3369, in traverse
    new_result = visit(obj, parents, result, *args, **kwargs)
  File "D:\Anaconda\envs\mfix-22.2.2\lib\site-packages\numpy\f2py\crackfortran.py", line 3428, in character_backward_compatibility_hook
    assert parents[-3][0] == 'vars'
AssertionError
mingw32-make.exe[2]: *** [f2pywrappers/mfixsolvermodule.c] Error 1
mingw32-make.exe[1]: *** [CMakeFiles/mfixsolver_ext.dir/all] Error 2
mingw32-make.exe[1]: *** Waiting for unfinished jobs....
CMakeFiles\mfixsolver_ext.dir\build.make:72: recipe for target 'f2pywrappers/mfixsolvermodule.c' failed
CMakeFiles\Makefile2:155: recipe for target 'CMakeFiles/mfixsolver_ext.dir/all' failed
[ 97%] Built target mfixsolver
Makefile:134: recipe for target 'all' failed
mingw32-make.exe: *** [all] Error 2
==========================================================================

                     BUILD FAILED
==========================================================================

the file is uploaded:
chem_fluidbed_2023-05-29T104813.440518.zip (45.2 KB)

I’m sorry you are having trouble with the build process.

We released MFiX 23.1.1 last week - can you try with that version? We got rid of the “wrapper” completely, all of the “f2pywrapper” stuff is gone… this cleaned up a lot of errors from the build process.

For what it’s worth, I can reproduce this error with MFiX version 22.2.2. I’m not sure it’s feasable to fix this and release a 22.2.3 version - it would probably be best if you could upgrade to the latest version (23.1.1) where the build succeeds without problems.

hello cgw:
I run the case in mfix-23.1.1,and the case can run well with the windows-os.
but with the linux-os, it can’t built the solver:

(mfix-23.1.1) [sc01@cu01 chem_success_48s_test5]$ build_mfixsolver --batch --smp -j 20
Building custom solver for chem_2.mfx
Running cmake command:
cmake -DENABLE_PYMFIX=ON -DENABLE_OpenMP=1 -G “Unix Makefiles” -DCMAKE_INSTALL_PREFIX=/home/sc01/test-fuwuqi/chem_success_48s_test5 -DUDF_DIR=/home/sc01/test-fuwuqi/chem_success_48s_test5 -DVERSION=23.1.1 /opt/software/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 = OFF
– ENABLE_OpenMP = 1
– ENABLE_CTEST = OFF
– ENABLE_COVERAGE = OFF
– The Fortran compiler identification is GNU 4.8.5
– The C compiler identification is GNU 4.8.5
– 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 - Failed
– Found OpenMP_C: -fopenmp (found version “3.1”)
– Found OpenMP_Fortran: -fopenmp (found version “3.1”)
– Found OpenMP: TRUE (found version “3.1”)
– Found Git: /opt/software/anaconda3/envs/mfix-23.1.1/bin/git (found version “2.40.1”)
– Found PythonInterp: /opt/software/anaconda3/envs/mfix-23.1.1/bin/python (found version “3.10.11”)

Found UDFs:
/home/sc01/test-fuwuqi/chem_success_48s_test5/usr_rates_des.f;/home/sc01/test-fuwuqi/chem_success_48s_test5/species.inc
– Found Python: /opt/software/anaconda3/envs/mfix-23.1.1/bin/python
– Configuring done (26.1s)
– Generating done (3.9s)
– Build files have been written to: /home/sc01/test-fuwuqi/chem_success_48s_test5/build
Build command:

cmake --build . --target install -j 20

gmake: Warning: File Makefile' has modification time 79850587 s in the future gmake[1]: Warning: File CMakeFiles/Makefile2’ has modification time 79850589 s in the future
gmake[2]: Warning: File model/CMakeFiles/mfixcore.dir/flags.make' has modification time 79850588 s in the future gmake[2]: warning: Clock skew detected. Your build may be incomplete. gmake[2]: Warning: File model/CMakeFiles/mfixcore.dir/flags.make’ has modification time 79850588 s in the future
[ 0%] Building Fortran object model/CMakeFiles/mfixcore.dir/param_mod.f.o
[ 0%] Building Fortran object model/CMakeFiles/mfixcore.dir/dmp_modules/compar_mod.f.o
[ 0%] Building Fortran object model/CMakeFiles/mfixcore.dir/funits_mod.f.o
[ 0%] Building Fortran object model/CMakeFiles/mfixcore.dir/param1_mod.f.o
[ 0%] Building Fortran object model/CMakeFiles/mfixcore.dir/scales_mod.f.o
[ 1%] Building Fortran object model/CMakeFiles/mfixcore.dir/fldvar_mod.f.o
[ 1%] Building Fortran object model/CMakeFiles/mfixcore.dir/visc_s_mod.f.o
[ 1%] Building Fortran object model/CMakeFiles/mfixcore.dir/GhdTheory/pressure.f.o
[ 2%] Building Fortran object model/CMakeFiles/mfixcore.dir/GhdTheory/chi_ij_GHD.f.o
[ 2%] Building Fortran object model/CMakeFiles/mfixcore.dir/GhdTheory/bulk_viscosity.f.o
[ 2%] Building Fortran object model/CMakeFiles/mfixcore.dir/mflux_mod.f.o
[ 2%] Building Fortran object model/CMakeFiles/mfixcore.dir/cdist_mod.f.o
[ 2%] Building Fortran object model/CMakeFiles/mfixcore.dir/trace_mod.f.o
[ 2%] Building Fortran object model/CMakeFiles/mfixcore.dir/vshear_mod.f.o
[ 2%] Building Fortran object model/CMakeFiles/mfixcore.dir/make_upper_case.f.o
[ 2%] Building Fortran object model/CMakeFiles/mfixcore.dir/adjust_leq.f.o
[ 2%] Building Fortran object model/CMakeFiles/mfixcore.dir/cartesian_grid/progress_bar_mod.f.o
[ 2%] Building Fortran object model/CMakeFiles/mfixcore.dir/remove_comment.f.o
[ 2%] Building Fortran object model/CMakeFiles/mfixcore.dir/turb_mod.f.o
[ 2%] Building Fortran object model/CMakeFiles/mfixcore.dir/parallel_mod.f.o
[ 3%] Building Fortran object model/CMakeFiles/mfixcore.dir/des/particle_filter_mod.f.o
[ 3%] Building Fortran object model/CMakeFiles/mfixcore.dir/des/resize.f.o
[ 3%] Building Fortran object model/CMakeFiles/mfixcore.dir/des/sq_rotation.f.o
[ 3%] Building Fortran object model/CMakeFiles/mfixcore.dir/visc_g_mod.f.o
[ 3%] Building Fortran object model/CMakeFiles/mfixcore.dir/usr_mod.f.o
[ 3%] Building Fortran object model/CMakeFiles/mfixcore.dir/cartesian_grid/polygon_mod.f.o
[ 3%] Building Fortran object model/CMakeFiles/mfixcore.dir/cartesian_grid/quadric_mod.f.o
[ 4%] Building Fortran object model/CMakeFiles/mfixcore.dir/qmomk/qmomk_parameters_mod.f.o
[ 4%] Building Fortran object model/CMakeFiles/mfixcore.dir/tau_g_mod.f.o
[ 4%] Building Fortran object model/CMakeFiles/mfixcore.dir/cartesian_grid/dashboard_mod.f.o
[ 4%] Building Fortran object model/CMakeFiles/mfixcore.dir/tau_s_mod.f.o
[ 4%] Building Fortran object model/CMakeFiles/mfixcore.dir/des/sq_gmres.f.o
[ 4%] Building Fortran object model/CMakeFiles/mfixcore.dir/des/sq_obb.f.o
[ 4%] Building Fortran object model/CMakeFiles/mfixcore.dir/dqmom/gaussj.f.o
[ 4%] Building Fortran object model/CMakeFiles/mfixcore.dir/get_flow_bc.f.o
[ 4%] Building Fortran object model/CMakeFiles/mfixcore.dir/get_walls_bc.f.o
[ 4%] Building Fortran object model/CMakeFiles/mfixcore.dir/qmomk/qmomk_tools_mod.f.o
[ 4%] Building Fortran object model/CMakeFiles/mfixcore.dir/dgtsl.f.o
[ 4%] Building Fortran object model/CMakeFiles/mfixcore.dir/rrates.f.o
[ 4%] Building Fortran object model/CMakeFiles/mfixcore.dir/thermochemical/get_values.f.o
[ 4%] Building Fortran object model/CMakeFiles/mfixcore.dir/usr_write_out1.f.o
[ 4%] Building Fortran object model/CMakeFiles/mfixcore.dir/usr_read_namelist.f.o
[ 5%] Building Fortran object model/CMakeFiles/mfixcore.dir/write_usr1.f.o
[ 6%] Building Fortran object model/CMakeFiles/mfixcore.dir/ODEPACK.F.o
[ 6%] Building C object model/CMakeFiles/mfixcore.dir/xpow.c.o
[ 6%] Building Fortran object model/CMakeFiles/mfixcore.dir/usr_write_out0.f.o
/opt/software/anaconda3/envs/mfix-23.1.1/share/mfix/src/model/xpow.c:1:0: error: bad value (haswell) for -march= switch
/* xpow.c - replacement pow() function that detects integer and dyadic exponents
^
gmake[2]: *** [model/CMakeFiles/mfixcore.dir/xpow.c.o] Error 1
gmake[2]: *** Waiting for unfinished jobs…
[ 6%] Building Fortran object model/CMakeFiles/mfixcore.dir/write_usr0.f.o
gmake[1]: *** [model/CMakeFiles/mfixcore.dir/all] Error 2
gmake: *** [all] Error 2

                 BUILD FAILED

==========================================================================

And I want to know, where can i download the mfix-22.1?

Your Fortran/C compiler is too old and does not recognize the -march=haswell flag.

Three options:

  1. Upgrade the gcc/gfortran in your base OS if possible. This will be used for all code compilation on your system.

  2. Install a newer compiler from conda-forge into the mfix environment. This will only be used for compiling MFiX.

bash$ conda activate mfix-22.2.2
(mfix-22.2.2)$  conda install -c conda-forge gcc gfortran
  1. (Not recommended) Modify the CMake files to remove the haswell switch as described at :
    Can not build the smp solver under Centos-7 - #4 by cgw

Note that this option will produce lower-quality (slower) code. Option 2 is probably easiest, in fact we are planning to include gcc/gfortran as part of the MFiX package in the future.

1 Like

mfix-22.1 has been superseded by mfix-22.1.1 which was a bugfix release - when we make bugfix releases, they obsolete previous version - there is really no reason to run 22.1 instead of 22.1.1 because they are identical except for a few fixed bugs.

However if you really need an obsolete version, you can just modify the download command:

conda create -n mfix-22.1.1 mfix==22.1.1 mfix-doc==22.1.1 mfix-gui==22.1.1 mfix-solver==22.1.1 mfix-src==22.1.1 -c conda-forge -c https://mfix.netl.doe.gov/s3/...

just copy the command from the website, and change all of the instances of mfix-22.1.1 to mfix-22.1 (6 places, make sure you get them all)

For what it’s worth - if you want to use the 22.2.2 version I found out why the compilation no longer works. The Fortran “wrapper” code is generated by “f2py” (Fortran to Python) which is part of the “numpy” (numeric Python) package. In the latest numpy (v 1.24) there was some change which is incompatible with the way we are using it. If you downgrade numpy:

bash$ conda activate mfix-22.2.2
(mfix-22.2.2)$ conda list numpy
 # packages in environment at /home/cgw/mambaforge/envs/mfix-22.2.2:
#
# Name                    Version                   Build  Channel
numpy                     1.23.5          py310h53a5b5f_0    conda-forge
(mfix-22.2.2)$ conda install -c conda-forge numpy=1.23
...
  - numpy     1.24.3  py310ha4c1d20_0  conda-forge                  
  + numpy     1.23.5  py310h53a5b5f_0  conda-forge/linux-64      6MB

After this, solver compilation works with mfix-22.2.2. But it’s still better to use latest version if possible! New version no longer depends on f2py/numpy and the compilation is quicker and more robust.

1 Like

thanks cgw, i tried to downgrade numpy as you said, and it works.
thank you!
And I will try upgrade the gcc/gfortran maybe sometime in the future.

Hi, cgw, I tried the option 2, but the mfix still identified the Fortran/C compiler as GNU 4.8.5 and report this error. While in mfixversioninfo, it’s identified as GNU 13.1.0, I don’t understand why this is happening? What should I do about it?

-- 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 4.8.5
-- The C compiler identification is GNU 4.8.5
-- 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 - Failed
-- Found MPI_C: /usr/local/lib/libmpi.so (found version "3.1")
-- Found MPI_Fortran: /usr/local/lib/libmpi_usempi.so (found version "3.1")
-- Found MPI: TRUE (found version "3.1")
-- Found Git: /root/anaconda3/envs/mfix-23.2/bin/git (found version "2.41.0")
-- Found PythonInterp: /root/anaconda3/envs/mfix-23.2/bin/python (found version "3.10.12")
(mfix-23.2) [root@localhost ~]# mfixversioninfo
MFiX:                23.2
Python:              3.10.12 | packaged by conda-forge | (main, Jun 23 2023, 22:40:32) [GCC 12.3.0]
gfortran:            GNU Fortran (conda-forge gcc 13.1.0-0) 13.1.0
openmpi:             mpirun (Open MPI) 4.1.5
Qt wrapper:          PyQt5
Qt:                  5.15.8
qtpy:                2.3.1
numpy:               1.23.5
nodeworks:           Unavailable
flask:               2.3.2
psutil:              5.9.5
VTK:                 9.2.6
OpenGL backend:      2
System info:         Linux-3.10.0-1160.el7.x86_64-x86_64-with-glibc2.17
Install location:    /root/anaconda3/envs/mfix-23.2/share/mfix
Default solver:      /root/anaconda3/envs/mfix-23.2/bin/mfixsolver
Solver source:       /root/anaconda3/envs/mfix-23.2/share/mfix/src

This looks like cmake is being stubborn and insisting on using the “system” compiler in /usr/bin. I will fix this for the next release. For now, you can control the behavior by setting the environment variables FC and CC as described in this post

Note that FC is the Fortran compiler, while CC is the C compiler, and CXX is the C++ compiler. MFiX uses Fortran and C, so we need to set FC and CC

bash$  conda activate mfix-23.2
(mfix-23.2)$ export FC=`which gfortran`
(mfix-23.2)$ export CC=`which gcc`
(mfix-23.2)$ mfix 

This should get cmake to use the new compiler, let me know if this doesn’t work.

I tried the two command, but It doesn’t identified compilers and is stuck, and shows two messages.


I also tried:

(mfix-23.2) [root@localhost ~]# export FC=/root/anaconda3/envs/mfix-23.2/bin/gfortran
(mfix-23.2) [root@localhost ~]# export FC=/root/anaconda3/envs/mfix-23.2/bin/gcc
(mfix-23.2) [root@localhost ~]# mfix

This time it identified compilers, but it’s still stuck.

In the first example it looks like you maybe used a forward quote instead of a backquote.

`which gfortran`
NOT
'which gfortran'

You can also write this as

(mfix-23.2)$ export FC=$(which gfortran)

the $() is a more modern way of writing ``

For the second case, note that you set FC twice. The second command should be

export CC=/root/anaconda3/envs/mfix-23.2/bin/gcc

Hope this helps.

It’s work! But another error was reported. :cold_sweat: Openmpi 4.1.5 is installed.

Running python -m mfixgui.build_mfixsolver -j --dmp -DMPI_Fortran_COMPILER=mpifort
Building custom solver for silane_pyrolysis_pic_3d.mfx
Running cmake command:
cmake -DMPI_Fortran_COMPILER=mpifort -DENABLE_PYMFIX=ON -DENABLE_MPI=1 -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/root/silane_pyrolysis_pic_3d -DUDF_DIR=/root/silane_pyrolysis_pic_3d -DVERSION=23.2 /root/anaconda3/envs/mfix-23.2/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 13.1.0
-- The C compiler identification is GNU 13.1.0
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /root/anaconda3/envs/mfix-23.2/bin/gfortran - skipped
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /root/anaconda3/envs/mfix-23.2/bin/gcc - 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
-- Checking for module 'mpi-c'
--   No package 'mpi-c' found
-- Could NOT find MPI_C (missing: MPI_C_LIB_NAMES MPI_C_WORKS)
-- Could NOT find MPI_Fortran (missing: MPI_Fortran_LIB_NAMES MPI_Fortran_WORKS)
CMake Error at /root/anaconda3/envs/mfix-23.2/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find MPI (missing: MPI_C_FOUND MPI_Fortran_FOUND)
Call Stack (most recent call first):
  /root/anaconda3/envs/mfix-23.2/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  /root/anaconda3/envs/mfix-23.2/share/cmake-3.26/Modules/FindMPI.cmake:1837 (find_package_handle_standard_args)
  model/CMakeLists.txt:661 (find_package)


-- Configuring incomplete, errors occurred!
 MFiX:                23.2
Python:              3.10.12 | packaged by conda-forge | (main, Jun 23 2023, 22:40:32) [GCC 12.3.0]
gfortran:            GNU Fortran (conda-forge gcc 13.1.0-0) 13.1.0
openmpi:             mpirun (Open MPI) 4.1.5
Qt wrapper:          PyQt5
Qt:                  5.15.8
qtpy:                2.3.1
numpy:               1.23.5
nodeworks:           Unavailable
flask:               2.3.2
psutil:              5.9.5
VTK:                 9.2.6
OpenGL backend:      2
System info:         Linux-3.10.0-1160.el7.x86_64-x86_64-with-glibc2.17
Install location:    /root/anaconda3/envs/mfix-23.2/share/mfix
Default solver:      /root/anaconda3/envs/mfix-23.2/bin/mfixsolver
Solver source:       /root/anaconda3/envs/mfix-23.2/share/mfix/src

Try installing openmpi into the mfix environment:

bash$ conda activate mfix-23.2
(mfix-23.2)$ conda install -c conda-forge openmpi   # or use mamba
(mfix-23.2)$ mfix

It’s worked! Thanks!

1 Like