OpenFOAM 4.0 compilation - "cannot open source file..."
Hi All -
I'm trying to compile OpenFOAM 4.0 for the first time, on RHEL 6.8 with Intel ICS v2016.3 and Intel MPI. I don't get too far, though. I have my Intel compiler module loaded, along with a couple prerequisites. Code:
export FOAM_INST_DIR=/apps2/openfoam Code:
Compiling enabled on 24 cores Code:
$ find -L . -name labelList.H Code:
$ vim ./OpenFOAM-4.0/wmake/rules/linux64Icc/c++ Here are the relevant environment variables. Code:
WM_LINK_LANGUAGE=c++ |
Greetings Ed Swindelles and welcome to the forum!
The first issue I'm spotting is this: Code:
WM_MPLIB=Intel_MPI The correct setting should be this: Code:
WM_MPLIB=INTELMPI Code:
export MPI_ROOT=$I_MPI_ROOT Quote:
Code:
./OpenFOAM-4.0/src/OpenFOAM/lnInclude/labelList.H Of course now the problem is figuring out why this folder "lnInclude" was not populated in the first place. Please let us know what each one of the following commands give you: Code:
ls -l $FOAM_SRC/OpenFOAM Best regards, Bruno |
Thanks @wyldckat. I fixed the MPI library name and exported MPI_ROOT. Here's the output from the commands you suggested (truncated a bit to fit). It looks like the lnInclude output directory exists and contains items, it just doesn't contain the ones which are producing errors, for some unknown reason.
#1 Code:
ls -l $FOAM_SRC/OpenFOAM Code:
ls -l $FOAM_SRC/OpenFOAM/lnInclude Code:
ln -vs ../primitives/zero/zero.H $FOAM_SRC/OpenFOAM/lnInclude/zero.H |
So I was getting nowhere and decided to rm -rf the directory that was untarred from the source download. I then reran the download and untar and this issue has gone away...¯\_(ツ)_/¯
Thanks all! |
All times are GMT -4. The time now is 10:23. |