From: hackbard Date: Mon, 19 Sep 2005 11:59:19 +0000 (+0000) Subject: oups, c conc will never increase. fixed ! :) X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=539c0f4216f1fad4f7cd870ed34295ac8d600e95;p=physik%2Fnlsop.git oups, c conc will never increase. fixed ! :) --- diff --git a/nlsop_client.c b/nlsop_client.c index 770ecb9..beeda9f 100644 --- a/nlsop_client.c +++ b/nlsop_client.c @@ -205,7 +205,7 @@ int distrib_c(d3_lattice *d3_l,info *my_info,int step,u32 rj_m,u32 *rj_g) int carry; /* put one c ion somewhere in the lattice */ - if(c_ratio*stepcc) { + if(c_ratio*step<=my_info->cc) { x=get_rand(d3_l->max_x); y=get_rand(d3_l->max_y); z=get_rand_reject(d3_l->max_z,rj_m,rj_g); @@ -623,6 +623,7 @@ int get_data_and_calc(t_event *event,void *allineed) { /* maybe we need a ratio! */ if(!do_sputter) { get_c_ratio(&c_ratio,p_file,&my_info,&d3_l); + printf("calculated c ratio: %f\n",c_ratio); } /*