Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
6ed642be
Commit
6ed642be
authored
May 17, 2010
by
Mark Olesen
Browse files
ENH: change return type of Time::stopAt to report if the setting changed
parent
c600ce54
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/db/Time/Time.C
View file @
6ed642be
...
...
@@ -552,8 +552,9 @@ bool Foam::Time::end() const
}
void
Foam
::
Time
::
stopAt
(
const
stopAtControls
sa
)
const
bool
Foam
::
Time
::
stopAt
(
const
stopAtControls
sa
)
const
{
const
bool
changed
=
(
stopAt_
!=
sa
);
stopAt_
=
sa
;
// adjust endTime
...
...
@@ -565,6 +566,7 @@ void Foam::Time::stopAt(const stopAtControls sa) const
{
endTime_
=
GREAT
;
}
return
changed
;
}
...
...
src/OpenFOAM/db/Time/Time.H
View file @
6ed642be
...
...
@@ -406,7 +406,8 @@ public:
//- Adjust the current stopAtControl. Note that this value
// only persists until the next time the dictionary is read.
virtual
void
stopAt
(
const
stopAtControls
)
const
;
// Return true if the stopAtControl changed.
virtual
bool
stopAt
(
const
stopAtControls
)
const
;
//- Reset the time and time-index to those of the given time
virtual
void
setTime
(
const
Time
&
);
...
...
Write
Preview
Markdown
is supported
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