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
6fa50802
Commit
6fa50802
authored
Nov 28, 2012
by
Pedro Gonnet
Browse files
minor changes.
Former-commit-id: 7130d5ffdefb9030641afb74423a18fab51bf635
parent
8017a587
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/test.c
View file @
6fa50802
...
...
@@ -848,7 +848,7 @@ int main ( int argc , char *argv[] ) {
/* Get the average interactions per particle. */
rho
=
0
;
space_map_parts
(
&
s
,
&
map_count
,
&
rho
);
printf
(
"main: average wcount per particle is %.3f.
\n
"
,
rho
/
s
.
nr_parts
/
runs
+
32
.
0
/
3
);
printf
(
"main: average wcount per particle is %.3f.
\n
"
,
rho
/
s
.
nr_parts
+
32
.
0
/
3
);
/* Get the particle with the lowest wcount. */
p
=
&
s
.
parts
[
0
];
...
...
@@ -898,7 +898,7 @@ int main ( int argc , char *argv[] ) {
/* 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
/
runs
);
printf
(
"main: average neighbours per particle is %.3f.
\n
"
,
(
double
)
icount
/
s
.
nr_parts
);
/* Dump the acceleration of the first particle. */
printf
(
"main: parts[%i].a is [ %.16e %.16e %.16e ].
\n
"
,
s
.
parts
[
6178
].
id
,
s
.
parts
[
6178
].
a
[
0
]
,
s
.
parts
[
6178
].
a
[
1
]
,
s
.
parts
[
6178
].
a
[
2
]
);
...
...
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