mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG:foamEndJob: work if writeControl differs from timeStep
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
# ========= |
|
||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
# \\ / O peration |
|
||||
# \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
# \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
# \\/ M anipulation |
|
||||
#-------------------------------------------------------------------------------
|
||||
# License
|
||||
@ -363,10 +363,12 @@ trap restoreDict QUIT TERM INT
|
||||
if [ "$stopOpt" = now ]
|
||||
then
|
||||
setRawEntry $controlDict stopAt nextWrite
|
||||
setRawEntry $controlDict writeControl timeStep
|
||||
setRawEntry $controlDict writeInterval 1
|
||||
|
||||
echo "$Script : Changed in controlDict:"
|
||||
echo " `getLine $controlDict stopAt`"
|
||||
echo " `getLine $controlDict writeControl`"
|
||||
echo " `getLine $controlDict writeInterval`"
|
||||
else
|
||||
setRawEntry $controlDict stopAt nextWrite
|
||||
|
||||
Reference in New Issue
Block a user