diff --git a/bin/foamNew b/bin/foamNew index 4c5a996aad01147a3e75afb743ecc31bc4003aba..5d61de63331ed59260c4bec23178278901684d4a 100755 --- a/bin/foamNew +++ b/bin/foamNew @@ -52,11 +52,11 @@ USAGE case "$1" in (-s | -source | source) shift - $WM_PROJECT_DIR/etc/codeTemplates/source/foamNewSource $* + $WM_PROJECT_DIR/etc/codeTemplates/source/foamNewSource "$@" ;; (-t | -template | template) shift - $WM_PROJECT_DIR/etc/codeTemplates/template/foamNewTemplate $* + $WM_PROJECT_DIR/etc/codeTemplates/template/foamNewTemplate "$@" ;; (*) usage "unknown type '$1'" diff --git a/etc/config/settings.csh b/etc/config/settings.csh index 069624f513770e59da28f60cf8aadb975c5d82b8..059ea30e336bca5078baed3c2e343c97d678adfa 100644 --- a/etc/config/settings.csh +++ b/etc/config/settings.csh @@ -391,22 +391,12 @@ case SYSTEMOPENMPI: # Use the system installed openmpi, get library directory via mpicc setenv FOAM_MPI openmpi-system - # Set compilation flags here instead of in wmake/rules/../mplibSYSTEMOPENMPI - setenv PINC "`mpicc --showme:compile`" - setenv PLIBS "`mpicc --showme:link`" - set libDir=`echo "$PLIBS" | sed -e 's/.*-L\([^ ]*\).*/\1/'` + set libDir=`mpicc --showme:link | sed -e 's/.*-L\([^ ]*\).*/\1/'` # Bit of a hack: strip off 'lib' and hope this is the path to openmpi # include files and libraries. setenv MPI_ARCH_PATH "${libDir:h}" - if ($?FOAM_VERBOSE && $?prompt) then - echo "Using system installed MPI:" - echo " compile flags : $PINC" - echo " link flags : $PLIBS" - echo " libmpi dir : $libDir" - endif - _foamAddLib $libDir unset libDir breaksw diff --git a/etc/config/settings.sh b/etc/config/settings.sh index 1fc2136530a5374a4d9cc3d9f8955c8858dbb91f..ed45429a650de2aa87ad202bf0634d8af40f32aa 100644 --- a/etc/config/settings.sh +++ b/etc/config/settings.sh @@ -418,23 +418,12 @@ SYSTEMOPENMPI) # Use the system installed openmpi, get library directory via mpicc export FOAM_MPI=openmpi-system - # Set compilation flags here instead of in wmake/rules/../mplibSYSTEMOPENMPI - export PINC="`mpicc --showme:compile`" - export PLIBS="`mpicc --showme:link`" - libDir=`echo "$PLIBS" | sed -e 's/.*-L\([^ ]*\).*/\1/'` + libDir=`mpicc --showme:link | sed -e 's/.*-L\([^ ]*\).*/\1/'` # Bit of a hack: strip off 'lib' and hope this is the path to openmpi # include files and libraries. export MPI_ARCH_PATH="${libDir%/*}" - if [ "$FOAM_VERBOSE" -a "$PS1" ] - then - echo "Using system installed MPI:" 1>&2 - echo " compile flags : $PINC" 1>&2 - echo " link flags : $PLIBS" 1>&2 - echo " libmpi dir : $libDir" 1>&2 - fi - _foamAddLib $libDir unset libDir ;;