Skip to content
GitLab
Menu
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
350fe1a2
Commit
350fe1a2
authored
Jun 14, 2019
by
Kutalmış Berçin
Committed by
Andrew Heather
Jun 14, 2019
Browse files
ENH: add query function isAdjustTimeStep()
parent
74ec9428
Changes
2
Show whitespace changes
Inline
Side-by-side
src/OpenFOAM/db/Time/Time.C
View file @
350fe1a2
...
...
@@ -950,6 +950,12 @@ bool Foam::Time::stopAt(const stopAtControls stopCtrl) const
}
bool
Foam
::
Time
::
isAdjustTimeStep
()
const
{
return
controlDict_
.
lookupOrDefault
(
"adjustTimeStep"
,
false
)
?
true
:
false
;
}
void
Foam
::
Time
::
setTime
(
const
Time
&
t
)
{
value
()
=
t
.
value
();
...
...
src/OpenFOAM/db/Time/Time.H
View file @
350fe1a2
...
...
@@ -422,6 +422,9 @@ public:
//- Return the stop control information
virtual
stopAtControls
stopAt
()
const
;
//- Return true if adjustTimeStep is true
virtual
bool
isAdjustTimeStep
()
const
;
//- Return the list of function objects
const
functionObjectList
&
functionObjects
()
const
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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