From 119ccc84ed553be2194f60ce55044013ffacf938 Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Sun, 12 Dec 2010 22:16:30 +0000 Subject: [PATCH] Fix unknown mpi_version shell error before the build started --- etc/settings.csh | 4 +++- etc/settings.sh | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/etc/settings.csh b/etc/settings.csh index 7b4de6aac..4e1c264a1 100644 --- a/etc/settings.csh +++ b/etc/settings.csh @@ -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 diff --git a/etc/settings.sh b/etc/settings.sh index 170d1d990..fe3147723 100644 --- a/etc/settings.sh +++ b/etc/settings.sh @@ -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 ]