From c649b9e302ad5962f746fd3c7b9aff70aae09107 Mon Sep 17 00:00:00 2001
From: Pedro Gonnet <pedro.gonnet@durham.ac.uk>
Date: Thu, 22 Aug 2013 17:32:44 +0000
Subject: [PATCH] added node repartitioning based on graph partition with
 METIS.

Former-commit-id: 94b22e6baa904a93133bced7189476d3734ff3b4
---
 examples/test.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/examples/test.c b/examples/test.c
index 27b95df22c..ba97139af1 100644
--- a/examples/test.c
+++ b/examples/test.c
@@ -926,6 +926,12 @@ int main ( int argc , char *argv[] ) {
     /* Let loose a runner on the space. */
     for ( j = 0 ; j < runs && e.time < clock ; j++ ) {
     
+        /* Repartition the space amongst the nodes? */
+        #if defined(WITH_MPI) && defined(HAVE_METIS)
+            if ( j == 1 )
+                e.forcerepart = 1;
+        #endif
+        
         // 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