X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4c96d3eadaf5c03fae80c4f0b0a12907609aee11..d302816d682e544d2ec520f5844cfd271137296a:/examples/smpi/NAS/dt.c diff --git a/examples/smpi/NAS/dt.c b/examples/smpi/NAS/dt.c index 45398c9a87..f1b63e054f 100644 --- a/examples/smpi/NAS/dt.c +++ b/examples/smpi/NAS/dt.c @@ -240,7 +240,6 @@ static DGraph *buildWH(const char cls){ AttachNode(dg,nd); } totComparators=0; - numPrevLayerNodes=numLayerNodes; while(numLayerNodes>maxInDeg){ numLayerNodes=numLayerNodes/maxInDeg; if(numLayerNodes*maxInDegval[i]=weight*b->val[i]; a->val[i+1]=weight*b->val[i+1]; a->val[i+2]=weight*b->val[i+2]; @@ -677,7 +675,7 @@ int main(int argc,char **argv ){ if(my_rank==0) fprintf(stderr,"Not enough timers. Node timeing is off. \n"); } - if(dg->numNodes>comm_size){ + if(dg->numNodes && dg->numNodes>comm_size){ if(my_rank==0){ fprintf(stderr,"** The number of MPI processes should not be less than \n"); fprintf(stderr,"** the number of nodes in the graph\n");