X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5e472a6023eb14e7396b16fa4eb47c805d8f4acf..dda57eeb45c7b40202346759a1096b2c29a5e0e7:/examples/smpi/NAS/dt.c diff --git a/examples/smpi/NAS/dt.c b/examples/smpi/NAS/dt.c index 45398c9a87..c98a0d34a9 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]; @@ -668,7 +666,7 @@ int main(int argc,char **argv ){ dg=buildBH(class); }else if(strncmp(argv[3],"WH",2)==0){ dg=buildWH(class); - }else if(strncmp(argv[3],"SH",2)==0){ + }else /* (strncmp(argv[3],"SH",2)==0) */ { dg=buildSH(class); } @@ -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");