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
edfd27f9
Commit
edfd27f9
authored
Feb 05, 2019
by
Andrew Heather
Browse files
BUG: Corrected re-reading of time control function objects. Fixes
#1192
parent
427acc84
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/db/functionObjects/functionObjectList/functionObjectList.C
View file @
edfd27f9
...
...
@@ -815,7 +815,35 @@ bool Foam::functionObjectList::read()
"functionObject::"
+
objPtr
->
name
()
+
"::read"
);
enabled
=
objPtr
->
read
(
dict
);
if
(
functionObjects
::
timeControl
::
entriesPresent
(
dict
))
{
if
(
isA
<
functionObjects
::
timeControl
>
(
objPtr
()))
{
// Already a time control - normal read
enabled
=
objPtr
->
read
(
dict
);
}
else
{
// Was not a time control - need to re-create
objPtr
.
reset
(
new
functionObjects
::
timeControl
(
key
,
time_
,
dict
)
);
enabled
=
true
;
}
}
else
{
// Plain function object - normal read
enabled
=
objPtr
->
read
(
dict
);
}
ok
=
enabled
&&
ok
;
}
...
...
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