sudo aptitude install w3m pv binutils-dev flex bison git-core build-essential python-dev libreadline5-dev wget zlib1g-dev cmake libpng12-dev libxt-dev libxi-dev libxrender-dev libxrandr-dev libxcursor-dev libxinerama-dev libfreetype6-dev libfontconfig1-dev libglib2.0-dev git
cd
mkdir OpenFOAM
cd OpenFOAM
git clone git://github.com/OpenCFD/OpenFOAM-1.7.x.git
wget http://downloads.sourceforge.net/project/foam/foam/1.7.1/ThirdParty-1.7.1.gtgz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Ffoam%2Ffiles%2F&ts=1286711162&use_mirror=ovh
tar xzf ThirdParty-1.7.1.gtgz
mv ThirdParty-1.7.1 ThirdParty-1.7.x
cd OpenFOAM-1.7.x
echo ". $HOME/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc" >> ~/.bashrc
source ~/.bashrc
export WM_NCOMPPROCS=4
./Allwmake
PS To compile on more (or less) than 4 CPUs modify the export WM_NCOMPPROCS=4 command
Nessun commento:
Posta un commento