Difference for src/ComputePatchPair.C from version 1.1024 to 1.1025

version 1.1024version 1.1025
Line 7
Line 7
 #include "WorkDistrib.decl.h" #include "WorkDistrib.decl.h"
 #include "Node.h" #include "Node.h"
 #include "ComputePatchPair.h" #include "ComputePatchPair.h"
  #include "Priorities.h"
 #include "PatchMap.inl" #include "PatchMap.inl"
 #include "Patch.h" #include "Patch.h"
  
Line 70
Line 71
  
     Compute::initialize();     Compute::initialize();
  
      // proxies are more urgent (lower priority) than patches
     int myNode = CkMyPe();     int myNode = CkMyPe();
     int p0 = patchID[0] % 64;     int p0 = PATCH_PRIORITY(patchID[0]);
     int p1 = patchID[1] % 64;     if ( PatchMap::Object()->node(patchID[0]) == myNode ) {
     int patchPrio = ((p0<p1)?p0:p1);       p0 += COMPUTE_HOME_PRIORITY;
     if ( PatchMap::Object()->node(patchID[0]) != myNode )     } else {
     {       p0 += COMPUTE_PROXY_PRIORITY;
       basePriority = 64 + patchPrio;     }
     }     int p1 = PATCH_PRIORITY(patchID[1]);
     else if ( PatchMap::Object()->node(patchID[1]) != myNode )     if ( PatchMap::Object()->node(patchID[1]) == myNode ) {
     {       p1 += COMPUTE_HOME_PRIORITY;
       basePriority = 64 + patchPrio;     } else {
     }       p1 += COMPUTE_PROXY_PRIORITY;
     else 
     { 
       basePriority = 2 * 64 + patchPrio; 
     }     }
      basePriority = ((p0<p1)?p0:p1);   // most urgent wins
  
 } }
  


Legend:
Removed in v.1.1024 
changed lines
 Added in v.1.1025



Made by using version 1.53 of cvs2html