Custom Solver _PYMFIX=ON

Building a custom solver for the Silane Pyrolysis example. Getting an error about ENABLE_PYMFIX=ON. Do I have to deactivate it? and if so how? (I couldn’t find any similar flag, yet). Thanks

Building custom solver for SP2D.mfx
Running cmake command:

cmake -DENABLE_PYMFIX=ON -G Unix Makefiles -DVERSION=18.1.5.post0 /lustre/projects/MKOPSCQ/opt/anaconda3/envs/mfix-18.1/share/mfix/src -DUDF_DIR=/lustre/home/kokakos14/MFix/SP2D

– The C compiler identification is Cray 8.7
– The Fortran compiler identification is Cray 8.7
– Cray Programming Environment 2.5.14 C
– Check for working C compiler: /opt/cray/pe/craype/2.5.14/bin/cc
– Check for working C compiler: /opt/cray/pe/craype/2.5.14/bin/cc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Cray Programming Environment 2.5.14 Fortran
– Check for working Fortran compiler: /opt/cray/pe/craype/2.5.14/bin/ftn
– Check for working Fortran compiler: /opt/cray/pe/craype/2.5.14/bin/ftn – works
– Detecting Fortran compiler ABI info
– Detecting Fortran compiler ABI info - done
– Checking whether /opt/cray/pe/craype/2.5.14/bin/ftn supports Fortran 90
– Checking whether /opt/cray/pe/craype/2.5.14/bin/ftn supports Fortran 90 – yes
– MFIX build settings summary:
– Build type = RelWithDebInfo
– CMake version = 3.5.2
– Fortran compiler = /opt/cray/pe/craype/2.5.14/bin/ftn
– Fortran flags =
– ENABLE_MPI = OFF
– ENABLE_OpenMP = OFF
– ENABLE_NETCDF = OFF
– ENABLE_CTEST = OFF
– ENABLE_COVERAGE = OFF
– Found Git: /usr/bin/git (found version “2.12.3”)
CMake Error at build-aux/cmake/PyMFIX.cmake:4 (message):
ENABLE_PYMFIX is only supported for GNU Fortran compiler
Call Stack (most recent call first):
CMakeLists.txt:267 (include)

Unfortunately, the interactive solver (Fortran wrapped with python) only works with GNU Fortran Compiler. If you need to build with the Cray compiler, follow these instructions for the batch solver: https://mfix.netl.doe.gov/doc/mfix/18.1.5/user_manual/howto/batch_solver.html

You can also build the solver from the source using cmake. See the documentation here: https://mfix.netl.doe.gov/doc/mfix/18.1.5/user_manual/developers/index.html

1 Like

thanks!
after you msg I realized the actual problem. I am on a Cray system and although I had GNU module loaded the Cray one was superseding. I unloaded it and interactive build completed smoothly.