Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1.     if(rank==0) {
  2.         while(1) {
  3.             ilong[0]=incrementcounter*rangeLength;
  4.             if (ilong[0]+rangeLength <= numberOfCombinations) {
  5.                 ilong[1]=ilong[0]+rangeLength;
  6.                 communicate
  7.                 incrementcounter++;
  8.             }
  9.             else {
  10.                 ilong[1] = numberOfCombinations;
  11.                 communicate
  12.                 ilong[2]=1;
  13.                 for(i=1; i<numprocs; i++)
  14.                     communicate
  15.                 break;
  16.             }
  17.         }
  18.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement