Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Tweak a bit the dependence function
authorcristianrosa <cristianrosa@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 10 Aug 2010 08:21:52 +0000 (08:21 +0000)
committercristianrosa <cristianrosa@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 10 Aug 2010 08:21:52 +0000 (08:21 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8146 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/mc/mc_transition.c

index 366e525..e4587a3 100644 (file)
@@ -275,11 +275,14 @@ int MC_transition_depend(mc_transition_t t1, mc_transition_t t2)
   if(t1->process == t2->process) 
     return FALSE;
 
-  if(t1->type == mc_isend && t2->type == mc_irecv)
+  if(t1->type != t2->type)
+    return FALSE;
+  
+/*  if(t1->type == mc_isend && t2->type == mc_irecv)
     return FALSE;
 
   if(t1->type == mc_irecv && t2->type == mc_isend)
-    return FALSE;
+    return FALSE;*/
   
   if(t1->type == mc_random || t2->type == mc_random)
     return FALSE;
@@ -302,6 +305,7 @@ 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;
-
+  
   return TRUE;
 }
\ No newline at end of file