2 #------------------------------------------------------------------------------
4 # \\ / F ield | foam-extend: Open Source CFD
6 # \\ / A nd | For copyright notice see file Copyright
8 #------------------------------------------------------------------------------
10 # This file is part of foam-extend.
12 # foam-extend is free software: you can redistribute it and/or modify it
13 # under the terms of the GNU General Public License as published by the
14 # Free Software Foundation, either version 3 of the License, or (at your
15 # option) any later version.
17 # foam-extend is distributed in the hope that it will be useful, but
18 # WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 # General Public License for more details.
22 # You should have received a copy of the GNU General Public License
23 # along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
29 # Build script for ThirdParty packages: Stage2
31 # Communication libraries
33 # Once this stage is built, you would normally re-initialize your
34 # OpenFOAM environment in order redirect OpenFOAM toward the appropriate
35 # communication library
37 # NOTE: This stage is optional. Use it only if you want to override
38 # your system communication libraries
41 # 1: Your OpenFOAM environment must be properly initialized
42 # 2: AllMake.stage1 if you are overriding your system compiler
45 # Martin Beaudoin, Hydro-Quebec, (2010)
47 #------------------------------------------------------------------------------
48 # run from third-party directory only
51 wmakeCheckPwd
"$WM_THIRD_PARTY_DIR" ||
{
52 echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
53 echo " The environment variables are inconsistent with the installation."
54 echo " Check the OpenFOAM entries in your dot-files and source them."
57 . tools
/makeThirdPartyFunctionsForRPM
58 #------------------------------------------------------------------------------
60 echo ========================================
61 echo Starting ThirdParty AllMake
: Stage2
62 echo ========================================
65 if [ "$WM_MPLIB" != "SYSTEMOPENMPI" ]
68 #( rpm_make -p openmpi-1.4.1 -s openmpi-1.4.1.spec -u http://www.open-mpi.org/software/ompi/v1.4/downloads/openmpi-1.4.1.tar.gz )
69 #( rpm_make -p openmpi-1.5 -s openmpi-1.5.spec -u http://www.open-mpi.org/software/ompi/v1.5/downloads/openmpi-1.5.tar.gz )
70 #( rpm_make -p openmpi-1.4.3 -s openmpi-1.4.3.spec -u http://www.open-mpi.org/software/ompi/v1.4/downloads/openmpi-1.4.3.tar.gz )
71 ( rpm_make
-p openmpi-1.6
.5 -s openmpi-1.6
.5.spec
-u http
://www.open-mpi.org
/software
/ompi
/v1.6
/downloads
/openmpi-1.6
.5.
tar.gz
)
73 echo "Using system installed OpenMPI"
76 echo ========================================
77 echo Done ThirdParty AllMake
: Stage2
78 echo ========================================
81 # ----------------------------------------------------------------- end-of-file