From: hackbard Date: Thu, 22 Jul 2004 15:36:34 +0000 (+0000) Subject: fixed get_reject method X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=2c4d66c386d0f1a9ec4c8d82b924a8c0601978b6;p=physik%2Fnlsop.git fixed get_reject method --- diff --git a/nlsop.c b/nlsop.c index 21d9439..0cdecc4 100644 --- a/nlsop.c +++ b/nlsop.c @@ -817,7 +817,7 @@ u32 get_reject_graph(info *my_info,d3_lattice *d3_l,char *file,u32 *graph) { if(a>d3_l->max_z*CELL_LENGTH) k=0; else { - graph[(int)(a/CELL_LENGTH)]=(int)(URAND_MAX*b); + graph[(int)(a/CELL_LENGTH)]=(int)(URAND_MAX/100*b); flag[(int)(a/CELL_LENGTH)]=1; } }