]> hackdaworld.org Git - physik/nlsop.git/commitdiff
fixed plot of nlsop profile
authorhackbard <hackbard>
Thu, 12 Aug 2004 10:21:51 +0000 (10:21 +0000)
committerhackbard <hackbard>
Thu, 12 Aug 2004 10:21:51 +0000 (10:21 +0000)
dfbapi.c
nlsop.c

index 3d0a6dfe0e24a02f738850675af95068be836a54..58510fc03b9b2bba273f3be594db9614a00253cd 100644 (file)
--- 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 ce06cecbed604340b2a903f4402603f8e3c343f8..350868e536751af130b839c9f4f87f9140c24b81 100644 (file)
--- 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;i<d3_l->max_z;i++) printf("%d %d\n",i,graph[i]);
 #endif