mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -181,7 +181,7 @@ fi
|
|||||||
# or may contain ':' separators
|
# or may contain ':' separators
|
||||||
|
|
||||||
oldIFS="$IFS" # Preserve initial IFS
|
oldIFS="$IFS" # Preserve initial IFS
|
||||||
IFS=': ' # Split on colon, whitespace
|
IFS=':; ' # Split on colon, whitespace (semi-colon for good measure)
|
||||||
set -- $*
|
set -- $*
|
||||||
|
|
||||||
if [ -n "$optVerbose" ]
|
if [ -n "$optVerbose" ]
|
||||||
@ -203,7 +203,7 @@ do
|
|||||||
done
|
done
|
||||||
printDebug "intermediate>$dirList<"
|
printDebug "intermediate>$dirList<"
|
||||||
|
|
||||||
IFS=': ' # Split on colon, whitespace (to avoid surprises)
|
IFS=':; ' # Split on colon, whitespace (semi-colon for good measure)
|
||||||
set -- $dirList
|
set -- $dirList
|
||||||
|
|
||||||
IFS="$oldIFS" # Restore initial IFS
|
IFS="$oldIFS" # Restore initial IFS
|
||||||
|
|||||||
@ -56,7 +56,7 @@ case OPENMPI:
|
|||||||
# Respect MPI_ARCH_PATH if set to a valid directory (ie, from user adjustments)
|
# Respect MPI_ARCH_PATH if set to a valid directory (ie, from user adjustments)
|
||||||
if (! $?MPI_ARCH_PATH ) setenv MPI_ARCH_PATH
|
if (! $?MPI_ARCH_PATH ) setenv MPI_ARCH_PATH
|
||||||
if (! -d "$MPI_ARCH_PATH" ) then
|
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
|
endif
|
||||||
|
|
||||||
# Inform openmpi where to find its install directory
|
# Inform openmpi where to find its install directory
|
||||||
|
|||||||
Reference in New Issue
Block a user