Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
A simple communication may also be from a host to itself...
authoralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 14 Aug 2007 15:13:43 +0000 (15:13 +0000)
committeralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 14 Aug 2007 15:13:43 +0000 (15:13 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4091 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/simdag/sd_task.c

index 1dacb6d..c9931c2 100644 (file)
@@ -650,6 +650,11 @@ void __SD_task_really_run(SD_task_t task) {
      (task->communication_amount[0]==0.0)) {
     task->surf_action = surf_workstation_resource->extension_public->
       execute(surf_workstations[0], task->computation_amount[0]);
      (task->communication_amount[0]==0.0)) {
     task->surf_action = surf_workstation_resource->extension_public->
       execute(surf_workstations[0], task->computation_amount[0]);
+  } else if((task->workstation_nb==1) &&
+           (task->computation_amount[0]==0.0)) {
+    task->surf_action = surf_workstation_resource->extension_public->
+      communicate(surf_workstations[0], surf_workstations[0],
+                 task->communication_amount[0],task->rate);
   } else if((task->workstation_nb==2) &&
            (task->computation_amount[0]==0.0)&&
            (task->computation_amount[1]==0.0)) {
   } else if((task->workstation_nb==2) &&
            (task->computation_amount[0]==0.0)&&
            (task->computation_amount[1]==0.0)) {