Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
648225b7
Commit
648225b7
authored
Jun 21, 2021
by
Leopold Stadler
Browse files
change time information format from :.2gto :.5g
parent
32fc0701
Pipeline
#5413
passed with stages
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
dumux/common/timeloop.hh
View file @
648225b7
...
...
@@ -348,11 +348,11 @@ public:
if
(
verbose_
)
{
const
auto
cpuTime
=
wallClockTime
();
using
std
::
round
;
using
std
::
round
;
const
auto
percent
=
round
(
time_
/
endTime_
*
100
);
std
::
cout
<<
Fmt
::
format
(
"[{:3.0f}%] "
,
percent
)
<<
Fmt
::
format
(
"Time step {} done in {:.2g} seconds. "
,
timeStepIdx_
,
timeStepWallClockTime_
)
<<
Fmt
::
format
(
"Wall clock time: {:.
2
g}, time: {:.5g}, time step size: {:.5g}
\n
"
,
cpuTime
,
time_
,
previousTimeStepSize_
);
<<
Fmt
::
format
(
"Wall clock time: {:.
5
g}, time: {:.5g}, time step size: {:.5g}
\n
"
,
cpuTime
,
time_
,
previousTimeStepSize_
);
}
}
...
...
@@ -365,13 +365,13 @@ public:
auto
cpuTime
=
timer_
.
stop
();
if
(
verbose_
)
std
::
cout
<<
Fmt
::
format
(
"Simulation took {:.
2
g} seconds on {} processes.
\n
"
,
cpuTime
,
comm
.
size
());
std
::
cout
<<
Fmt
::
format
(
"Simulation took {:.
5
g} seconds on {} processes.
\n
"
,
cpuTime
,
comm
.
size
());
if
(
comm
.
size
()
>
1
)
cpuTime
=
comm
.
sum
(
cpuTime
);
if
(
verbose_
)
std
::
cout
<<
Fmt
::
format
(
"The cumulative CPU time was {:.
2
g} seconds.
\n
"
,
cpuTime
);
std
::
cout
<<
Fmt
::
format
(
"The cumulative CPU time was {:.
5
g} seconds.
\n
"
,
cpuTime
);
}
//! If the time loop has verbose output
...
...
Timo Koch
@timok
mentioned in commit
cb2c60e7
·
Jun 25, 2021
mentioned in commit
cb2c60e7
mentioned in commit cb2c60e7cd31844934ce5b9d65f84bf04c9e6c48
Toggle commit list
Timo Koch
@timok
mentioned in merge request
!2689 (merged)
·
Jun 25, 2021
mentioned in merge request
!2689 (merged)
mentioned in merge request !2689
Toggle commit list
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment