BUG: removed bash-specific scripting in externalCoupledCavity/externalSolver

This commit is contained in:
william
2014-02-04 11:56:16 +00:00
parent d67fb0f7c1
commit 55ac19dcf6

View File

@ -18,12 +18,12 @@ timeOut=10
refGrad=0 refGrad=0
valueFraction=1 valueFraction=1
function log() log()
{ {
echo "External: $@" echo "External: $@"
} }
function init() init()
{ {
log "initialisation: creating ${dataFile}.in" log "initialisation: creating ${dataFile}.in"
@ -54,7 +54,7 @@ step=0
while [ 1 ]; do while [ 1 ]; do
if [ -f $lockFile ]; then if [ -f $lockFile ]; then
log "found lock file ${lockFile} - waiting" log "found lock file ${lockFile} - waiting"
((totalWait += waitSec)) totalWait=$(expr $totalWait + $waitSec)
if [ $totalWait -gt $timeOut ]; then if [ $totalWait -gt $timeOut ]; then
log "timeout" log "timeout"
break break
@ -63,7 +63,7 @@ while [ 1 ]; do
fi fi
else else
totalWait=0 totalWait=0
((step++)) step=$(expr $step + 1)
log "step $step" log "step $step"
log "lock not present - taking control" log "lock not present - taking control"