From: hackbard Date: Thu, 12 Aug 2004 10:21:51 +0000 (+0000) Subject: fixed plot of nlsop profile X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75ee7f0b14dae9fb66ba61f4eb30a1a61b40b4f3;p=physik%2Fnlsop.git fixed plot of nlsop profile --- diff --git a/dfbapi.c b/dfbapi.c index 3d0a6df..58510fc 100644 --- a/dfbapi.c +++ b/dfbapi.c @@ -241,7 +241,7 @@ int d3_lattice_draw(d3_lattice *d3_l,int x,int y,int z,int arg_c,char **arg_v,un if((!mode)||mode==3) dx_lattice_get_color((*d3_l).status+x_c+y_c*d3_l->max_x+z_c*d3_l->max_x*d3_l->max_y,&r,&g,&b,mode); if(mode==3) { - if(d3_l->max_y*p1[z_c]/max2==y_c) + if((int)(d3_l->max_y*(1.0*p2[z_c]/max2))==y_c) { r=0xff; g=0xff; diff --git a/nlsop.c b/nlsop.c index ce06cec..350868e 100644 --- a/nlsop.c +++ b/nlsop.c @@ -1081,7 +1081,7 @@ u32 get_reject_graph(info *my_info,d3_lattice *d3_l,char *file,u32 *graph) { free(flag); #ifdef DEBUG_INTERPOL_PROFILE - printf("debug: (interpolated profile)\n"); + printf("debug: %s (interpolated profile)\n",file); for(i=0;imax_z;i++) printf("%d %d\n",i,graph[i]); #endif