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
|
||||
|
||||
@ -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
|
||||
@ -196,7 +196,7 @@ do
|
||||
echo "${node}xterm -font fixed -title 'processor'$proc $geom -e $procCmdFile" >> $PWD/mpirun.schema
|
||||
;;
|
||||
5)
|
||||
echo "$sourceFoam; cd $PWD; valgrind $exec $args; read dummy" >> $procCmdFile
|
||||
echo "$sourceFoam; cd $PWD; valgrind --leak-check=full --show-reachable=yes $exec $args 2>&1 | tee $procLog; read dummy" >> $procCmdFile
|
||||
echo "${node}xterm -font fixed -title 'processor'$proc $geom -e $procCmdFile" >> $PWD/mpirun.schema
|
||||
;;
|
||||
6)
|
||||
|
||||
Reference in New Issue
Block a user