Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
30512ec1
Commit
30512ec1
authored
Jul 25, 2008
by
Mattijs Janssens
Browse files
correcting interval dumping when changing dump interval
parent
6ce182a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/db/Time/TimeIO.C
View file @
30512ec1
...
...
@@ -44,6 +44,7 @@ void Foam::Time::readDict()
);
}
scalar
oldWriteInterval
=
writeInterval_
;
if
(
controlDict_
.
readIfPresent
(
"writeInterval"
,
writeInterval_
))
{
if
(
writeControl_
==
wcTimeStep
&&
label
(
writeInterval_
)
<
1
)
...
...
@@ -58,6 +59,22 @@ void Foam::Time::readDict()
controlDict_
.
lookup
(
"writeFrequency"
)
>>
writeInterval_
;
}
if
(
oldWriteInterval
!=
writeInterval_
)
{
switch
(
writeControl_
)
{
case
wcRunTime
:
case
wcAdjustableRunTime
:
// Recalculate outputTimeIndex_ to be in units of current
// writeInterval.
outputTimeIndex_
*=
oldWriteInterval
/
writeInterval_
;
break
;
default:
break
;
}
}
if
(
controlDict_
.
readIfPresent
(
"purgeWrite"
,
purgeWrite_
))
{
if
(
purgeWrite_
<
0
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment