From c7048992747d4a25b89966ebc4a33298d4c18e7c Mon Sep 17 00:00:00 2001 From: Pedro Gonnet <pedro.gonnet@durham.ac.uk> Date: Fri, 31 Aug 2012 13:34:59 +0000 Subject: [PATCH] fix stats. Former-commit-id: 04f568a14430665bd48601a3ca2012f19a60e3eb --- test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test.c b/test.c index 15c5d3219c..3111210402 100644 --- a/test.c +++ b/test.c @@ -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; -- GitLab