Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TurTLE
TurTLE
Commits
bfb08d5a
Commit
bfb08d5a
authored
Jan 26, 2016
by
Cristian Lalescu
Browse files
output time difference at end of loop
parent
65e89b0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
bfps/_fluid_base.py
View file @
bfb08d5a
...
...
@@ -197,14 +197,13 @@ class _fluid_particle_base(_code):
'time0 = time1;
\n
'
)
self
.
main
+=
'for (int max_iter = iteration+niter_todo; iteration < max_iter; iteration++)
\n
'
self
.
main
+=
'{
\n
'
self
.
main
+=
output_time_difference
self
.
main
+=
'if (iteration % niter_stat == 0) do_stats();
\n
'
if
self
.
particle_species
>
0
:
self
.
main
+=
'if (iteration % niter_part == 0) do_particle_stats();
\n
'
self
.
main
+=
self
.
particle_loop
self
.
main
+=
self
.
fluid_loop
self
.
main
+=
'}
\n
'
self
.
main
+=
output_time_difference
self
.
main
+=
'}
\n
'
self
.
main
+=
'do_stats();
\n
'
self
.
main
+=
'do_particle_stats();
\n
'
if
self
.
particle_species
>
0
:
...
...
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