Skip to content
Snippets Groups Projects
Commit ff07ae15 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

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.
parent a4fa743a
No related merge requests found
......@@ -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
......
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment