]> hackdaworld.org Git - physik/nlsop.git/commitdiff
fixed get_reject method
authorhackbard <hackbard>
Thu, 22 Jul 2004 15:36:34 +0000 (15:36 +0000)
committerhackbard <hackbard>
Thu, 22 Jul 2004 15:36:34 +0000 (15:36 +0000)
nlsop.c

diff --git a/nlsop.c b/nlsop.c
index 21d9439877ab77f68f4b81a107056166a8e5d542..0cdecc4202699e69d46262885463966da694782a 100644 (file)
--- 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;
    }
   }