Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Change dependence function to mimic the one in AVOCS article
authorcristianrosa <cristianrosa@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 5 Jul 2010 14:08:45 +0000 (14:08 +0000)
committercristianrosa <cristianrosa@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 5 Jul 2010 14:08:45 +0000 (14:08 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7968 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/mc/mc_transition.c

index 3d37e46..dcc1915 100644 (file)
@@ -282,9 +282,12 @@ int MC_transition_depend(mc_transition_t t1, mc_transition_t t2)
   if(t1->process == t2->process) 
     return FALSE;
 
   if(t1->process == t2->process) 
     return FALSE;
 
-  if(t1->type != t2->type)
+  if(t1->type == mc_isend && t2->type == mc_irecv)
     return FALSE;
 
     return FALSE;
 
+  if(t1->type == mc_irecv && t2->type == mc_isend)
+    return FALSE;
+  
   if(t1->type == mc_random || t2->type == mc_random)
     return FALSE;
   
   if(t1->type == mc_random || t2->type == mc_random)
     return FALSE;
   
@@ -306,6 +309,6 @@ int MC_transition_depend(mc_transition_t t1, mc_transition_t t2)
      && t1->wait.comm->dst_buff != t2->wait.comm->dst_buff
      && t2->wait.comm->dst_buff != t1->wait.comm->src_buff)
     return FALSE;
      && t1->wait.comm->dst_buff != t2->wait.comm->dst_buff
      && t2->wait.comm->dst_buff != t1->wait.comm->src_buff)
     return FALSE;
-  
+
   return TRUE;
 }
\ No newline at end of file
   return TRUE;
 }
\ No newline at end of file