X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/13fb4af932a02ea0bd4293d1e55ac071de326f80..abf3b21ad3f4a19475431076e6e2b26f76d2e7d6:/examples/smpi/NAS/dt.c diff --git a/examples/smpi/NAS/dt.c b/examples/smpi/NAS/dt.c index 7dacc29df8..5a363cdcc4 100644 --- a/examples/smpi/NAS/dt.c +++ b/examples/smpi/NAS/dt.c @@ -180,14 +180,14 @@ static DGraph *buildSH(const char cls){ tmpS>>=1; } for(i=0;imaxInDeg){ 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,16 +666,16 @@ 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); } if(timer_on != 0 && dg->numNodes+1>timers_tot){ timer_on=0; if(my_rank==0) - fprintf(stderr,"Not enough timers. Node timeing is off. \n"); + fprintf(stderr,"Not enough timers. Node timing 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");