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
This commit is contained in:
fatene 2009-02-03 13:44:49 +00:00
commit b59d4bc65e

View file

@ -35,7 +35,7 @@
*/ */
#include <vector> #include <vector>
#include <iostream>
#include "runner.h" #include "runner.h"
#include "reac_thread.h" #include "reac_thread.h"
#include "peo_debug.h" #include "peo_debug.h"
@ -107,11 +107,12 @@ void initializeContext ()
num_local_exec_runners = 0; num_local_exec_runners = 0;
synchronizeNodes (); //synchronizeNodes ();
// setting up the execution IDs & counting the number of local exec. runners // setting up the execution IDs & counting the number of local exec. runners
for (unsigned i = 0; i < the_runners.size (); i ++) 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 ++; if (the_runners [i] -> isAssignedLocally ()) num_local_exec_runners ++;
} }