Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Davison, Jacob
tfimsrg
Commits
5464cf38
Commit
5464cf38
authored
Aug 23, 2019
by
Jacob Davison
Browse files
print total time
parent
3ace390f
Changes
1
Hide whitespace changes
Inline
Side-by-side
main3b.py
View file @
5464cf38
...
...
@@ -199,7 +199,7 @@ def main3b(n_holes, n_particles, ref=None, d=1.0, g=0.5, pb=0.0):
end
=
time
.
time
()
# finish full timer
time_str
=
"Program finished in {:2.5f} seconds
\n
"
.
format
(
end
-
start
)
# output total time
print
(
time_str
)
del
ha
,
ot
,
wg
,
fl
,
solver
,
y0
,
sfinal
,
ds
# clear resources
return
(
convergence
,
iters
,
d
,
g
,
pb
,
n_holes
+
n_particles
,
s_vals
,
E_vals
,
time_str
)
...
...
Write
Preview
Supports
Markdown
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