I’ve been trying to run Mfix in parallel in a Cluster with the Linux SUSE Enterprise Server 11 OS which has no graphical interface. I installed Anaconda and ran it (serial) through “mfixsolver -f file.mfx” and it works. However, when I try to build a batch solver the build is unsuccessful and I get the message: “gfortran: unrecognized option ‘-cpp’” both in serial and dmp. I have attached the files with the outputs.
This may be the problem: the current gfortran and gcc in the system are 4.3.4 and I know versions 4.8 or later are advised in the setup guide, but I am having problems to install these newer versions in the system.
Is it possible to build the batch solver with gfortran 4.3? Or is there any way to use a newer version of gfortran installed in the mfix-19.1 env? I installed gcc-4.8.5 through “conda install gcc make” and I think I can install gfortran as well through “conda install -c anaconda gfortran_linux-64”.
Yes, I would suggest using GCC 4.8 from conda install gcc. The gcc package includes the gfortran command. (You don’t need gfortran_linux-64, that’s mostly intended for building conda packages).
If you still have trouble, try setting FC explicitly with the full path to the conda gfortran:
> which gfortran
~/.conda/envs/mfix/bin/gfortran
> export FC=~/.conda/envs/mfix/bin/gfortran
Thank you. It worked running serial. However, when I try running dmp it doesn’t work (File attached). Is there a way to install openMPI in the env and export it in a similar way?
Hi, I have got very similar trouble with yours. I have resolved this problem.
In my case, the openmpi installed in the cluster is based on a very old g-Fortran.
The problem is resolved as the following steps:
(1)load a gcc version higher than 4.8
(2)install openmpi on your local directory,
Thanks. I followed the steps, completed the installation and set the environment variable. I had to install it locally and run make install with no sudo though. I ran with --smp and it worked, but it did not work with --dmp parameter. The same error persists.