]> www.hackdaworld.org Git - physik/nlsop.git/commitdiff
NEL_Z
authorhackbard <hackbard>
Thu, 20 Jan 2005 13:23:14 +0000 (13:23 +0000)
committerhackbard <hackbard>
Thu, 20 Jan 2005 13:23:14 +0000 (13:23 +0000)
nlsop_client.c

index 9718270fcfa7a7a67c2e53eb5c612052faeea288..5a25f4e6319a32de49c6177309100667d82bfed5 100644 (file)
@@ -524,8 +524,11 @@ int get_data_and_calc(t_event *event,void *allineed) {
     for(j=0;j<my_info.cpi;j++) {
       x_c=get_rand(d3_l.max_x);
       y_c=get_rand(d3_l.max_y);
-      // z_c=get_rand_reject(d3_l.max_z,ne_max,n_e_loss);
+#ifdef NEL_Z
+      z_c=get_rand_reject(d3_l.max_z,ne_max,n_e_loss);
+#else
       z_c=get_rand(d3_l.max_z);
+#fi
       process_cell(&d3_l,x_c,y_c,z_c,&my_info,nel_z[z_c]);
     }
     distrib_c(&d3_l,&my_info,i,ip_max,c_profile);