ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/rtrace.c
(Generate patch)

Comparing ray/src/rt/rtrace.c (file contents):
Revision 2.69 by greg, Thu Mar 3 22:38:34 2016 UTC vs.
Revision 2.72 by greg, Thu Nov 8 00:54:07 2018 UTC

# Line 28 | Line 28 | static const char      RCSid[] = "$Id$";
28   #include  "ambient.h"
29   #include  "source.h"
30   #include  "otypes.h"
31 + #include  "otspecial.h"
32   #include  "resolu.h"
33   #include  "random.h"
34  
# Line 162 | Line 163 | rtrace(                                /* trace rays from file */
163                  if (d == 0.0) {                         /* zero ==> flush */
164                          if (--nextflush <= 0 || !vcount) {
165                                  if (nproc > 1 && ray_fifo_flush() < 0)
166 <                                        error(USER, "lost children");
166 >                                        error(USER, "child(ren) died");
167                                  bogusray();
168                                  fflush(stdout);
169                                  nextflush = (vresolu > 0) & (hresolu > 1) ? 0 :
# Line 174 | Line 175 | rtrace(                                /* trace rays from file */
175                                                          /* flush if time */
176                          if (!--nextflush) {
177                                  if (nproc > 1 && ray_fifo_flush() < 0)
178 <                                        error(USER, "lost children");
178 >                                        error(USER, "child(ren) died");
179                                  fflush(stdout);
180                                  nextflush = hresolu;
181                          }
# Line 410 | Line 411 | getvec(                /* get a vector from fp */
411                  }
412                  break;
413          case 'f':                                       /* binary float */
414 <                if (getbinary((char *)vf, sizeof(float), 3, fp) != 3)
414 >                if (getbinary(vf, sizeof(float), 3, fp) != 3)
415                          return(-1);
416                  VCOPY(vec, vf);
417                  break;
418          case 'd':                                       /* binary double */
419 <                if (getbinary((char *)vd, sizeof(double), 3, fp) != 3)
419 >                if (getbinary(vd, sizeof(double), 3, fp) != 3)
420                          return(-1);
421                  VCOPY(vec, vd);
422                  break;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines