Using complete path for foamGetSystemInfo. Bug reported by Bernhard Gschaider

This commit is contained in:
Martin Beaudoin 2013-07-11 10:47:31 -07:00
parent 1bd3cd6bdd
commit 912e758cc7
2 changed files with 6 additions and 2 deletions

View file

@ -142,7 +142,9 @@ export WM_COMPILER_LIB_ARCH=
: ${WM_MPLIB:=OPENMPI}; export WM_MPLIB
# WM_NCOMPPROCS = <number of processes to use>
: ${WM_NCOMPPROCS:=`foamGetSystemInfo -nbrCores`}; export WM_NCOMPPROCS
# Warning: Need to use a complete path for foamGetSystemInfo because the PATH
# environment variable is not properly initialized yet.
: ${WM_NCOMPPROCS:=`$WM_PROJECT_DIR/bin/foamGetSystemInfo -nbrCores`}; export WM_NCOMPPROCS
# Run options (floating-point signal handling and memory initialisation)

View file

@ -134,7 +134,9 @@ if ( ! $?WM_COMPILE_OPTION ) setenv WM_COMPILE_OPTION Opt
if ( ! $?WM_MPLIB ) setenv WM_MPLIB OPENMPI
# WM_NCOMPPROCS = <number of processes to use>
if ( ! $?WM_NCOMPPROCS ) setenv WM_NCOMPPROCS `foamGetSystemInfo -nbrCores`
# Warning: Need to use a complete path for foamGetSystemInfo because the PATH
# environment variable is not properly initialized yet.
if ( ! $?WM_NCOMPPROCS ) setenv WM_NCOMPPROCS `$WM_PROJECT_DIR/bin/foamGetSystemInfo -nbrCores`
# Run options (floating-point signal handling and memory initialisation)
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~