Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Yuhao Liu
ogs
Commits
9c4f0f43
Commit
9c4f0f43
authored
3 years ago
by
Tom Fischer
Browse files
Options
Downloads
Patches
Plain Diff
[NumLib] TimeStep: Rename for better understandability.
parent
64db5378
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
NumLib/TimeStepping/TimeStep.h
+6
-6
6 additions, 6 deletions
NumLib/TimeStepping/TimeStep.h
with
6 additions
and
6 deletions
NumLib/TimeStepping/TimeStep.h
+
6
−
6
View file @
9c4f0f43
...
...
@@ -35,7 +35,7 @@ public:
:
_previous
(
current_time
),
_current
(
current_time
),
_dt
(
_current
-
_previous
),
_
steps
(
0
)
_
time_step_number
(
0
)
{
}
...
...
@@ -49,7 +49,7 @@ public:
:
_previous
(
previous_time
),
_current
(
current_time
),
_dt
(
_current
-
_previous
),
_
steps
(
n
)
_
time_step_number
(
n
)
{
}
...
...
@@ -73,7 +73,7 @@ public:
_previous
=
_current
;
_current
+=
dt
;
_dt
=
dt
;
_
steps
++
;
_
time_step_number
++
;
return
*
this
;
}
...
...
@@ -103,8 +103,8 @@ public:
double
current
()
const
{
return
_current
;
}
/// time step size from _previous
double
dt
()
const
{
return
_dt
;
}
/// the
number of
time
_
step
s
std
::
size_t
steps
()
const
{
return
_
steps
;
}
/// the time step
number
std
::
size_t
steps
()
const
{
return
_
time_step_number
;
}
private
:
/// previous time step
...
...
@@ -114,7 +114,7 @@ private:
/// time step size
double
_dt
;
/// the number of time steps
std
::
size_t
_
steps
;
std
::
size_t
_
time_step_number
;
};
}
// namespace NumLib
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