Windows RunFunctions update.

This commit is contained in:
Robert Keser 2017-04-17 15:23:30 +02:00
parent 1f5e031f9c
commit e2a3e46122

View file

@ -71,6 +71,11 @@ runParallel ()
LOG_NAME=log.$APP_NAME LOG_NAME=log.$APP_NAME
fi fi
if [ "$WM_OSTYPE" = "MSWindows" ]
then
APP_RUN="${APP_RUN}.exe"
fi
if [ -f $LOG_NAME ] ; then if [ -f $LOG_NAME ] ; then
echo "$APP_NAME already run on $PWD: remove log file to run" echo "$APP_NAME already run on $PWD: remove log file to run"
else else
@ -135,27 +140,52 @@ cloneCase ()
makeFsiCaseLinks () makeFsiCaseLinks ()
{ {
cd $1 if [ "$WM_OSTYPE" = "MSWindows" ]
cd system then
ln -s ../../$2/system $2 cd $1
cd ../constant cd system
ln -s ../../$2/constant $2 cp -r ../../$2/system $2
cd ../0 cd ../constant
ln -s ../../$2/0 $2 cp -r ../../$2/constant $2
cd ../.. cd ../0
cp -r ../../$2/0 $2
cd ../..
else
cd $1
cd system
ln -s ../../$2/system $2
cd ../constant
ln -s ../../$2/constant $2
cd ../0
ln -s ../../$2/0 $2
cd ../..
fi
} }
makeFsiResultsLinks () makeFsiResultsLinks ()
{ {
cd $1 if [ "$WM_OSTYPE" = "MSWindows" ]
TIME_DIRS=`foamInfoExec -times | sed '1,/constant/d'` then
echo "makeFsiResultsLinks for" $TIME_DIRS cd $1
cd ../$2 TIME_DIRS=`foamInfoExec -times | sed '1,/constant/d'`
for T in $TIME_DIRS echo "makeFsiResultsLinks for" $TIME_DIRS
do cd ../$2
ln -s ../$1/${T}/solid ${T} for T in $TIME_DIRS
done do
cd .. cp -r ../$1/${T}/solid ${T}
done
cd ..
else
cd $1
TIME_DIRS=`foamInfoExec -times | sed '1,/constant/d'`
echo "makeFsiResultsLinks for" $TIME_DIRS
cd ../$2
for T in $TIME_DIRS
do
ln -s ../$1/${T}/solid ${T}
done
cd ..
fi
} }
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------