diff --git a/src/moab/MSched.c b/src/moab/MSched.c index bbfb44d..c40dcab 100644 --- a/src/moab/MSched.c +++ b/src/moab/MSched.c @@ -6186,7 +6186,7 @@ int MJobDistributeTasks( for (nindex = 0;RQ->NodeList[nindex].N != NULL;nindex++) { - if (nindex >= MMAX_NODE_PER_JOB) + if (nindex >= MAX_MNODE_PER_JOB) break; MaxTPN = MAX(MaxTPN,RQ->NodeList[nindex].TC); @@ -6200,7 +6200,7 @@ int MJobDistributeTasks( for (nindex = 0;RQ->NodeList[nindex].N != NULL;nindex++) { - if (nindex >= MMAX_NODE_PER_JOB) + if (nindex >= MAX_MNODE_PER_JOB) break; if (Overflow == 0) @@ -6229,7 +6229,7 @@ int MJobDistributeTasks( for (nindex = 0;RQ->NodeList[nindex].N != NULL;nindex++) { - if (nindex >= MMAX_NODE_PER_JOB) + if (nindex >= MAX_MNODE_PER_JOB) break; if (index == RQ->NodeCount) @@ -6299,7 +6299,7 @@ int MJobDistributeTasks( for (nindex = sindex;RQ->NodeList[nindex].N != NULL;nindex++) { - if (nindex >= MMAX_NODE_PER_JOB) + if (nindex >= MAX_MNODE_PER_JOB) break; if ((int)RQ->NodeList[nindex].TC > MaxTPN) @@ -6326,7 +6326,7 @@ int MJobDistributeTasks( for (nindex = 0;nindex < AllocIndex;nindex++) { - if (nindex >= MMAX_NODE_PER_JOB) + if (nindex >= MAX_MNODE_PER_JOB) break; if (RQ->BlockingFactor != 1) @@ -6366,7 +6366,7 @@ int MJobDistributeTasks( for (nindex = AllocIndex - 1;nindex > 0;nindex--) { - if (nindex >= MMAX_NODE_PER_JOB) + if (nindex >= MAX_MNODE_PER_JOB) break; if (tmpNodeList[nindex].TC != tmpNodeList[nindex - 1].TC) @@ -6387,7 +6387,7 @@ int MJobDistributeTasks( for (nindex = AllocIndex - 1;nindex >= 0;nindex--) { - if (nindex >= MMAX_NODE_PER_JOB) + if (nindex >= MAX_MNODE_PER_JOB) break; tmpNodeList[nindex].TC--; @@ -6424,7 +6424,7 @@ int MJobDistributeTasks( for (nindex = 0;RQ->NodeList[nindex].N != NULL;nindex++) { - if (nindex >= MMAX_NODE_PER_JOB) + if (nindex >= MAX_MNODE_PER_JOB) break; if (RQ->NodeList[nindex].TC >= TPN) @@ -6456,7 +6456,7 @@ int MJobDistributeTasks( for (nindex = 0;RQ->NodeList[nindex].N != NULL;nindex++) { - if (nindex >= MMAX_NODE_PER_JOB) + if (nindex >= MAX_MNODE_PER_JOB) break; tmpNodeList[index].N = RQ->NodeList[nindex].N; @@ -6651,7 +6651,7 @@ int MJobDistributeTasks( for (nindex1 = 0;NodeList[nindex1].N != NULL;nindex1++) { - if (nindex >= MMAX_NODE_PER_JOB) + if (nindex >= MAX_MNODE_PER_JOB) break; if (NodeList[nindex1].TC == 0)