From b59d4bc65e43f2cfd04b18fc3fc37697b5be85ca Mon Sep 17 00:00:00 2001 From: fatene Date: Tue, 3 Feb 2009 13:44:49 +0000 Subject: [PATCH] Correct a bug generated while parsing the xml file. Tests whether the size of the vector id_run_execution of a node id greater than 0. git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1387 331e1502-861f-0410-8da2-ba01fb791d7f --- trunk/paradiseo-peo/src/core/runner.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/trunk/paradiseo-peo/src/core/runner.cpp b/trunk/paradiseo-peo/src/core/runner.cpp index 36f80a49c..3f7964ec3 100644 --- a/trunk/paradiseo-peo/src/core/runner.cpp +++ b/trunk/paradiseo-peo/src/core/runner.cpp @@ -35,7 +35,7 @@ */ #include - +#include #include "runner.h" #include "reac_thread.h" #include "peo_debug.h" @@ -107,11 +107,12 @@ void initializeContext () num_local_exec_runners = 0; - synchronizeNodes (); + //synchronizeNodes (); // setting up the execution IDs & counting the number of local exec. runners for (unsigned i = 0; i < the_runners.size (); i ++) { - the_runners [i] -> setExecutionID ( my_node -> execution_id_run[ i ] ); + if (my_node->execution_id_run.size() > 0) + the_runners [i] -> setExecutionID ( my_node -> execution_id_run[ i ] ); if (the_runners [i] -> isAssignedLocally ()) num_local_exec_runners ++; }