Using complete path for foamGetSystemInfo. Bug reported by Bernhard Gschaider
This commit is contained in:
parent
1bd3cd6bdd
commit
912e758cc7
2 changed files with 6 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
Reference in a new issue