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:
parent
6dfe8036df
commit
b59d4bc65e
1 changed files with 4 additions and 3 deletions
|
|
@ -35,7 +35,7 @@
|
|||
*/
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <iostream>
|
||||
#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 ++;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue