Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
dumux-repositories
dumux
Commits
c0eee2b9
Commit
c0eee2b9
authored
5 years ago
by
Timo Koch
Browse files
Options
Downloads
Patches
Plain Diff
[timeloop] Rename lastTimeStepSize to previousTimeStepSize
parent
cb0c2819
No related branches found
No related tags found
1 merge request
!1577
[timeloop] Feature/checkpointtimeloop with memory
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/common/timeloop.hh
+4
-4
4 additions, 4 deletions
dumux/common/timeloop.hh
with
4 additions
and
4 deletions
dumux/common/timeloop.hh
+
4
−
4
View file @
c0eee2b9
...
@@ -157,7 +157,7 @@ public:
...
@@ -157,7 +157,7 @@ public:
time_
=
startTime
;
time_
=
startTime
;
endTime_
=
tEnd
;
endTime_
=
tEnd
;
last
TimeStepSize_
=
0.0
;
previous
TimeStepSize_
=
0.0
;
userSetMaxTimeStepSize_
=
std
::
numeric_limits
<
Scalar
>::
max
();
userSetMaxTimeStepSize_
=
std
::
numeric_limits
<
Scalar
>::
max
();
timeStepIdx_
=
0
;
timeStepIdx_
=
0
;
finished_
=
false
;
finished_
=
false
;
...
@@ -178,7 +178,7 @@ public:
...
@@ -178,7 +178,7 @@ public:
{
{
timeStepIdx_
++
;
timeStepIdx_
++
;
time_
+=
timeStepSize_
;
time_
+=
timeStepSize_
;
last
TimeStepSize_
=
timeStepSize_
;
previous
TimeStepSize_
=
timeStepSize_
;
// compute how long the last time step took
// compute how long the last time step took
const
auto
cpuTime
=
wallClockTime
();
const
auto
cpuTime
=
wallClockTime
();
...
@@ -342,7 +342,7 @@ public:
...
@@ -342,7 +342,7 @@ public:
<<
std
::
setprecision
(
6
)
<<
timeStepWallClockTime_
<<
" seconds. "
<<
std
::
setprecision
(
6
)
<<
timeStepWallClockTime_
<<
" seconds. "
<<
"Wall clock time: "
<<
std
::
setprecision
(
3
)
<<
cpuTime
<<
"Wall clock time: "
<<
std
::
setprecision
(
3
)
<<
cpuTime
<<
", time: "
<<
std
::
setprecision
(
5
)
<<
time_
<<
", time: "
<<
std
::
setprecision
(
5
)
<<
time_
<<
", time step size: "
<<
std
::
setprecision
(
8
)
<<
last
TimeStepSize_
<<
", time step size: "
<<
std
::
setprecision
(
8
)
<<
previous
TimeStepSize_
<<
std
::
endl
;
<<
std
::
endl
;
}
}
}
}
...
@@ -384,7 +384,7 @@ protected:
...
@@ -384,7 +384,7 @@ protected:
Scalar
endTime_
;
Scalar
endTime_
;
Scalar
timeStepSize_
;
Scalar
timeStepSize_
;
Scalar
last
TimeStepSize_
;
Scalar
previous
TimeStepSize_
;
Scalar
userSetMaxTimeStepSize_
;
Scalar
userSetMaxTimeStepSize_
;
Scalar
timeAfterLastTimeStep_
,
timeStepWallClockTime_
;
Scalar
timeAfterLastTimeStep_
,
timeStepWallClockTime_
;
int
timeStepIdx_
;
int
timeStepIdx_
;
...
...
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