From 21e577f1f9951a7b681d1bd346a213d7f72766fe Mon Sep 17 00:00:00 2001 From: Pedro Gonnet <pedro.gonnet@durham.ac.uk> Date: Tue, 17 Sep 2013 20:20:52 +0000 Subject: [PATCH] redistribute after parallel read. Former-commit-id: 1a5e19323d495a1bffc910e97354783cf8357f7e --- examples/test.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/examples/test.c b/examples/test.c index df4b3ba2f0..91c0242df6 100644 --- a/examples/test.c +++ b/examples/test.c @@ -901,6 +901,9 @@ int main ( int argc , char *argv[] ) { if ( nr_nodes != grid[0]*grid[1]*grid[2] ) error( "Grid size does not match number of nodes." ); engine_split( &e , grid ); + printParticle( s.parts , 5665430362989 , s.nr_parts ); + engine_redistribute ( &e ); + printParticle( s.parts , 5665430362989 , s.nr_parts ); #endif /* Write the state of the system as it is before starting time integration. */ @@ -934,10 +937,14 @@ int main ( int argc , char *argv[] ) { /* Repartition the space amongst the nodes? */ #if defined(WITH_MPI) && defined(HAVE_METIS) - if ( j == 1 ) + if ( j == 2 ) e.forcerepart = 1; #endif + /* Force a rebuild for testing. */ + /* if ( j % 4 == 1 ) + e.forcerebuild = 1; */ + // message( "starting run %i/%i (t=%.3e) with %i threads and %i queues..." , j+1 , runs , e.time , e.nr_threads , e.nr_queues ); fflush(stdout); timers_reset( timers_mask_all ); #ifdef COUNTER -- GitLab