mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: removed bash-specific scripting in externalCoupledCavity/externalSolver
This commit is contained in:
@ -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"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user