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

fix stats.

Former-commit-id: 04f568a14430665bd48601a3ca2012f19a60e3eb
parent 806bee60
No related branches found
No related tags found
No related merge requests found
...@@ -726,12 +726,12 @@ int main ( int argc , char *argv[] ) { ...@@ -726,12 +726,12 @@ int main ( int argc , char *argv[] ) {
/* Get the average interactions per particle. */ /* Get the average interactions per particle. */
count = 0; count = 0;
space_map_parts( &s , &map_count , &count ); 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. */ /* 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 ); printf( "main: average neighbours per particle is %.3f.\n" , (double)icount / s.nr_parts / runs );
/* Get all the cells of a certain depth. */ /* Get all the cells of a certain depth. */
/* count = 11; /* count = 11;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment