CONFIG: typo in config.csh/mpi

- also handle stray semi-colons in foamCleanPath.
  Treat like a ':' separator.
  They are incorrect and potentially problematic for shell evals.
This commit is contained in:
Mark Olesen 2018-01-16 12:00:21 +01:00
parent a4fa743add
commit ff07ae1520
2 changed files with 3 additions and 3 deletions

View File

@ -181,7 +181,7 @@ fi
# or may contain ':' separators
oldIFS="$IFS" # Preserve initial IFS
IFS=': ' # Split on colon, whitespace
IFS=':; ' # Split on colon, whitespace (semi-colon for good measure)
set -- $*
if [ -n "$optVerbose" ]
@ -203,7 +203,7 @@ do
done
printDebug "intermediate>$dirList<"
IFS=': ' # Split on colon, whitespace (to avoid surprises)
IFS=':; ' # Split on colon, whitespace (semi-colon for good measure)
set -- $dirList
IFS="$oldIFS" # Restore initial IFS

View File

@ -56,7 +56,7 @@ case OPENMPI:
# Respect MPI_ARCH_PATH if set to a valid directory (ie, from user adjustments)
if (! $?MPI_ARCH_PATH ) setenv MPI_ARCH_PATH
if (! -d "$MPI_ARCH_PATH" ) then
setenv mpiDir=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/$FOAM_MPI
setenv MPI_ARCH_PATH $WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/$FOAM_MPI
endif
# Inform openmpi where to find its install directory