Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
c9f8e954
Commit
c9f8e954
authored
Jun 13, 2013
by
Pedro Gonnet
Browse files
add functionality to dump task times.
Former-commit-id: 27ea0372469b5bc4b8b6e8cd6bacd4abadb299c5
parent
7f168616
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/test.c
View file @
c9f8e954
...
...
@@ -1050,6 +1050,11 @@ int main ( int argc , char *argv[] ) {
printf
(
"main: particle %lli/%i at [ %e %e %e ] (h=%e) has maximum wcount %.3f.
\n
"
,
p
->
id
,
(
int
)(
p
-
s
.
parts
)
,
p
->
x
[
0
]
,
p
->
x
[
1
]
,
p
->
x
[
2
]
,
p
->
h
,
p
->
density
.
wcount
);
/* Dump the task data. */
/* for ( k = 0 ; k < s.nr_tasks ; k++ )
printf( " %i %i %i %i %lli %lli\n" ,
s.tasks[k].rid , s.tasks[k].type , s.tasks[k].subtype , (s.tasks[k].cj == NULL) , s.tasks[k].tic , s.tasks[k].toc ); */
/* Write final output. */
write_output
(
&
e
);
...
...
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