Commit 29b435b8 authored by EYRAUD-DUBOIS Lionel's avatar EYRAUD-DUBOIS Lionel

cosmetics + Remove useless include

parent bb684889
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
#include "instance.h" #include "instance.h"
#include "algorithm.h" #include "algorithm.h"
#include "algoptions.h" #include "algoptions.h"
#include "listAlgorithm.h"
class Dmdas : public Algorithm { class Dmdas : public Algorithm {
......
#include "Dmdas.h" #include "Dmdas.h"
#include "listAlgorithm.h"
#include "util.h" #include "util.h"
#include <vector> #include <vector>
...@@ -174,8 +173,7 @@ double Dmdas::compute(Instance &ins, SchedAction* action) { ...@@ -174,8 +173,7 @@ double Dmdas::compute(Instance &ins, SchedAction* action) {
cout << "List: Finishing task " << i << " at time " << currentTime << endl; cout << "List: Finishing task " << i << " at time " << currentTime << endl;
finishedTasks[i] = true; finishedTasks[i] = true;
currentRunningTask[j] = -1; currentRunningTask[j] = -1;
for(int j = 0; j < (int) revDependencies[i].size(); j++) { for(int & k: revDependencies[i]) {
int k = revDependencies[i][j];
nbDep[k]--; nbDep[k]--;
if(verbosity >= 7) if(verbosity >= 7)
cout << " Dependent task: " << k << " remaining dependencies: " << nbDep[k] << endl; cout << " Dependent task: " << k << " remaining dependencies: " << nbDep[k] << endl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment