Commit 32bb2ea7 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Corrected (this time in the right way) the two printf messages that had the...

Corrected (this time in the right way) the two printf messages that had the wrong formats depending on the architecture (64/32 bits) of the machine.


Former-commit-id: a369bff9f6576c17c0ea0bbf6c441f7fb12d0712
parent dc14c25e
...@@ -854,7 +854,7 @@ int main ( int argc , char *argv[] ) { ...@@ -854,7 +854,7 @@ int main ( int argc , char *argv[] ) {
p = &s.parts[0]; p = &s.parts[0];
space_map_parts( &s , &map_wcount_min , &p ); space_map_parts( &s , &map_wcount_min , &p );
printf( "main: particle %i/%i at [ %e %e %e ] (h=%e) has minimum wcount %.3f (icount=%i).\n" , printf( "main: particle %i/%i at [ %e %e %e ] (h=%e) has minimum wcount %.3f (icount=%i).\n" ,
p->id , p - s.parts , p->x[0] , p->x[1] , p->x[2] , p->h , p->wcount + 32.0/3 , p->icount ); p->id , (int)(p - s.parts) , p->x[0] , p->x[1] , p->x[2] , p->h , p->wcount + 32.0/3 , p->icount );
/* Loop over all the tasks and dump the ones containing p. */ /* Loop over all the tasks and dump the ones containing p. */
/* for ( k = 0 ; k < s.nr_tasks ; k++ ) { /* for ( k = 0 ; k < s.nr_tasks ; k++ ) {
...@@ -893,7 +893,7 @@ int main ( int argc , char *argv[] ) { ...@@ -893,7 +893,7 @@ int main ( int argc , char *argv[] ) {
p = &s.parts[0]; p = &s.parts[0];
space_map_parts( &s , &map_wcount_max , &p ); space_map_parts( &s , &map_wcount_max , &p );
printf( "main: particle %i/%i at [ %e %e %e ] (h=%e) has maximum wcount %.3f (icount=%i).\n" , printf( "main: particle %i/%i at [ %e %e %e ] (h=%e) has maximum wcount %.3f (icount=%i).\n" ,
p->id , p - s.parts , p->x[0] , p->x[1] , p->x[2] , p->h , p->wcount + 32.0/3 , p->icount ); p->id , (int)(p - s.parts) , p->x[0] , p->x[1] , p->x[2] , p->h , p->wcount + 32.0/3 , p->icount );
/* Get the average interactions per particle. */ /* Get the average interactions per particle. */
icount = 0; icount = 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment