Merge branch 'develop' of develop.openfoam.com:Development/OpenFOAM-plus into develop

This commit is contained in:
Andrew Heather
2017-06-28 14:08:02 +01:00
6 changed files with 21 additions and 7 deletions

View File

@ -49,7 +49,7 @@ case SYSTEMOPENMPI:
breaksw breaksw
case OPENMPI: case OPENMPI:
setenv FOAM_MPI openmpi-2.1.1 setenv FOAM_MPI openmpi-1.10.4
_foamEtc config.csh/openmpi # <- Adjustments (optional) _foamEtc config.csh/openmpi # <- Adjustments (optional)
setenv MPI_ARCH_PATH $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

View File

@ -55,7 +55,7 @@ SYSTEMOPENMPI)
;; ;;
OPENMPI) OPENMPI)
export FOAM_MPI=openmpi-2.1.1 export FOAM_MPI=openmpi-1.10.4
_foamEtc config.sh/openmpi # <- Adjustments (optional) _foamEtc config.sh/openmpi # <- Adjustments (optional)
export MPI_ARCH_PATH=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/$FOAM_MPI export MPI_ARCH_PATH=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/$FOAM_MPI

View File

@ -27,13 +27,18 @@ linkParallelCase()
echo "Linking $dst parallel case from $src" echo "Linking $dst parallel case from $src"
mkdir $dst mkdir $dst
for i in constant system
# Copy system - may wish to change things
for i in system 0
do do
cp -r $src/$i $dst echo " copy $i/"
( cd $dst && cp -r ../$src/$i . )
done done
echo " link processor directories with $# times: $@" echo " link constant/"
( cd $dst && ln -sf ../$src/constant . )
echo " link processor*/ with $# times: $@"
for proc in $(cd $src && \ls -d processor*) for proc in $(cd $src && \ls -d processor*)
do do
( cd $dst && ln -sf ../$src/$proc . ) ( cd $dst && ln -sf ../$src/$proc . )

View File

@ -3,7 +3,8 @@ cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions . $WM_PROJECT_DIR/bin/tools/RunFunctions
# The 0/ field only # The 0/ field only
runApplication reconstructPar -withZero -time 0 # runApplication reconstructPar -withZero -time 0
runApplication reconstructParMesh -constant -withZero -time 0
# Check the location of the pressure zones # Check the location of the pressure zones
# runParallel lumpedPointZones <<- Parallel file writing not yet done # runParallel lumpedPointZones <<- Parallel file writing not yet done

View File

@ -2,6 +2,9 @@
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions . $WM_PROJECT_DIR/bin/tools/RunFunctions
# Cleanup old junk that may prevent things from starting
\rm -f comms/OpenFOAM.lock
# If OpenFOAM stops prematurely, trigger the external solver to stop # If OpenFOAM stops prematurely, trigger the external solver to stop
trap '[ -e comms/OpenFOAM.lock ] && echo "status=done" > comms/OpenFOAM.lock' EXIT TERM INT trap '[ -e comms/OpenFOAM.lock ] && echo "status=done" > comms/OpenFOAM.lock' EXIT TERM INT

View File

@ -15,7 +15,7 @@ unset parallel
parallel=true parallel=true
# Dummy 0 directory # Dummy 0 directory
mkdir 0 mkdir -p 0
if [ "${parallel:-false}" = false ] if [ "${parallel:-false}" = false ]
then then
@ -39,6 +39,11 @@ else
runParallel renumberMesh -overwrite runParallel renumberMesh -overwrite
# In case serial calculations are needed later
restore0Dir # Overwrite dummy 0 directory
# runApplication reconstructParMesh -constant
fi fi