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
c7048992
Commit
c7048992
authored
Aug 31, 2012
by
Pedro Gonnet
Browse files
fix stats.
Former-commit-id: 04f568a14430665bd48601a3ca2012f19a60e3eb
parent
806bee60
Changes
1
Hide whitespace changes
Inline
Side-by-side
test.c
View file @
c7048992
...
...
@@ -726,12 +726,12 @@ int main ( int argc , char *argv[] ) {
/* Get the average interactions per particle. */
count
=
0
;
space_map_parts
(
&
s
,
&
map_count
,
&
count
);
printf
(
"main: average interactions per particle is %.3f.
\n
"
,
count
/
s
.
nr_parts
+
32
.
0
/
3
);
printf
(
"main: average interactions per particle is %.3f.
\n
"
,
count
/
s
.
nr_parts
/
runs
+
32
.
0
/
3
);
/* Get the average interactions per particle. */
icount
=
0
;
space_map_parts
(
&
s
,
&
map_icount
,
&
icount
);
printf
(
"main: average neighbours per particle is %.3f.
\n
"
,
(
double
)
icount
/
s
.
nr_parts
);
printf
(
"main: average neighbours per particle is %.3f.
\n
"
,
(
double
)
icount
/
s
.
nr_parts
/
runs
);
/* Get all the cells of a certain depth. */
/* count = 11;
...
...
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