Fix unknown mpi_version shell error before the build started

This commit is contained in:
Hrvoje Jasak 2010-12-12 22:16:30 +00:00
parent beaed224d1
commit 119ccc84ed
2 changed files with 4 additions and 2 deletions

View file

@ -142,6 +142,8 @@ endsw
unset MPI_ARCH_PATH
set mpi_version=unknown
switch ("$WM_MPLIB")
case OPENMPI:
if (-d $WM_THIRD_PARTY_DIR/packages/openmpi-1.4.3 ) then
@ -376,7 +378,7 @@ endif
# Metis library if available
# ~~~~~~~~~~~~~~~~~~~~~~~~~~
if ( $?METIS_SYSTEM == 0&& -e $WM_THIRD_PARTY_DIR/packages/metis-5.0pre2 ) then
if ( $?METIS_SYSTEM == 0 && -e $WM_THIRD_PARTY_DIR/packages/metis-5.0pre2 ) then
_foamSource $WM_THIRD_PARTY_DIR/packages/metis-5.0pre2/platforms/$WM_OPTIONS/etc/metis-5.0pre2.csh
endif

View file

@ -182,7 +182,7 @@ esac
# ~~~~~~~~~~~~~~~~~~~~~~
unset MPI_ARCH_PATH
mpi_version=unknown
case "$WM_MPLIB" in
OPENMPI)
if [ -e $WM_THIRD_PARTY_DIR/packages/openmpi-1.4.3 ]