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

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