Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
182b368b
"README.md" did not exist on "a3b50aff9fee01fe976ab2c46e8aadb19894e389"
Commit
182b368b
authored
15 years ago
by
Mark Olesen
Browse files
Options
Downloads
Patches
Plain Diff
ENH: change return type of Time::stopAt to report if the setting changed
parent
59c0e8e2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/OpenFOAM/db/Time/Time.C
+3
-1
3 additions, 1 deletion
src/OpenFOAM/db/Time/Time.C
src/OpenFOAM/db/Time/Time.H
+2
-1
2 additions, 1 deletion
src/OpenFOAM/db/Time/Time.H
with
5 additions
and
2 deletions
src/OpenFOAM/db/Time/Time.C
+
3
−
1
View file @
182b368b
...
@@ -552,8 +552,9 @@ bool Foam::Time::end() const
...
@@ -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
;
stopAt_
=
sa
;
// adjust endTime
// adjust endTime
...
@@ -565,6 +566,7 @@ void Foam::Time::stopAt(const stopAtControls sa) const
...
@@ -565,6 +566,7 @@ void Foam::Time::stopAt(const stopAtControls sa) const
{
{
endTime_
=
GREAT
;
endTime_
=
GREAT
;
}
}
return
changed
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/OpenFOAM/db/Time/Time.H
+
2
−
1
View file @
182b368b
...
@@ -406,7 +406,8 @@ public:
...
@@ -406,7 +406,8 @@ public:
//- Adjust the current stopAtControl. Note that this value
//- Adjust the current stopAtControl. Note that this value
// only persists until the next time the dictionary is read.
// 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
//- Reset the time and time-index to those of the given time
virtual
void
setTime
(
const
Time
&
);
virtual
void
setTime
(
const
Time
&
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment