Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(rank==0) {
- while(1) {
- ilong[0]=incrementcounter*rangeLength;
- if (ilong[0]+rangeLength <= numberOfCombinations) {
- ilong[1]=ilong[0]+rangeLength;
- communicate
- incrementcounter++;
- }
- else {
- ilong[1] = numberOfCombinations;
- communicate
- ilong[2]=1;
- for(i=1; i<numprocs; i++)
- communicate
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement