Sign inSign up

yfjeffliu/openfoamintelmpi

By yfjeffliu

•Updated over 7 years ago

Image
0

280

yfjeffliu/openfoamintelmpi repository overview

FROM bensonyang88/hpl-intelmpi:v4 RUN rm /bin/sh && ln -s /bin/bash /bin/sh

RUN cd /root &&
rm -rf MLNX_OFED_LINUX-4.5-1.0.1.0-ubuntu16.04-x86_64* &&
rm -rf hpl-2.3* RUN apt update -y RUN apt-get install gcc build-essential flex bison cmake zlib1g-dev libboost-system-dev libboost-thread-dev libopenmpi-dev openmpi-bin gnuplot libreadline-dev libncurses-dev libxt-dev -y RUN apt-get install qt4-dev-tools libqt4-dev libqt4-opengl-dev freeglut3-dev libqtwebkit-dev -y RUN apt-get install libscotch-dev libcgal-dev -y

RUN cd &&
wget https://sourceforge.net/projects/openfoamplus/files/v1812/OpenFOAM-v1812.tgz⁠ &&
wget https://sourceforge.net/projects/openfoamplus/files/v1812/ThirdParty-v1812.tgz⁠ &&
tar xvf OpenFOAM-v1812.tgz &&
tar xvf ThirdParty-v1812.tgz &&
cd OpenFOAM-v1812 &&
sed -i '73c export WM_COMPILER=Icc ' /root/OpenFOAM-v1812/etc/bashrc &&
sed -i '96c export WM_MPLIB=INTELMPI' /root/OpenFOAM-v1812/etc/bashrc &&
sed -i '97a export MPI_ROOT=/opt/intel/compilers_and_libraries_2019.2.187/linux/mpi/intel64' /root/OpenFOAM-v1812/etc/bashrc &&
sed -i '9c cFLAGS = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC -I/opt/intel/compilers_and_libraries_2019.2.187/linux/mpi/intel64/include' /root/OpenFOAM-v1812/wmake/rules/linux64Icc/c &&
sed -i '7c c++FLAGS = $(GFLAGS) $(c++WARN) $(c++OPT) $(c++DBUG) $(ptFLAGS) $(LIB_HEADER_DIRS) -fPIC -I/opt/intel/compilers_and_libraries_2019.2.187/linux/mpi/intel64/include' /root/OpenFOAM-v1812/wmake/rules/linux64Icc/c++ &&
source etc/bashrc &&
../ThirdParty-v1812/makeCGAL || true &&
cd ../ThirdParty-v1812/boost_1_64_0 &&
./b2 &&
./b2 install RUN cd /root/OpenFOAM-v1812 &&
source /opt/intel/compilers_and_libraries_2019.2.187/linux/mpi/intel64/bin/mpivars.sh &&
source /opt/intel/compilers_and_libraries_2019.2.187/linux/bin/compilervars.sh intel64 &&
source /opt/intel/compilers_and_libraries_2019.2.187/linux/mkl/bin/mklvars.sh intel64 &&
source /root/OpenFOAM-v1812/etc/bashrc &&
./Allwmake -j -update

Tag summary

Content type

Image

Digest

Size

12.1 GB

Last updated

over 7 years ago

docker pull yfjeffliu/openfoamintelmpi:v3