Skip to content
Snippets Groups Projects
Commit 6fa50802 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

minor changes.

Former-commit-id: 7130d5ffdefb9030641afb74423a18fab51bf635
parent 8017a587
No related branches found
No related tags found
No related merge requests found
...@@ -848,7 +848,7 @@ int main ( int argc , char *argv[] ) { ...@@ -848,7 +848,7 @@ int main ( int argc , char *argv[] ) {
/* Get the average interactions per particle. */ /* Get the average interactions per particle. */
rho = 0; rho = 0;
space_map_parts( &s , &map_count , &rho ); 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. */ /* Get the particle with the lowest wcount. */
p = &s.parts[0]; p = &s.parts[0];
...@@ -898,7 +898,7 @@ int main ( int argc , char *argv[] ) { ...@@ -898,7 +898,7 @@ int main ( int argc , char *argv[] ) {
/* Get the average interactions per particle. */ /* Get the average interactions per particle. */
icount = 0; icount = 0;
space_map_parts( &s , &map_icount , &icount ); 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. */ /* 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] ); 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] );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment