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

Comparing ray/src/rt/rcontrib.c (file contents):
Revision 2.9 by greg, Sat Jun 16 17:30:13 2012 UTC vs.
Revision 2.12 by greg, Thu Jun 21 17:14:32 2012 UTC

# Line 9 | Line 9 | static const char RCSid[] = "$Id$";
9   #include "rcontrib.h"
10   #include "source.h"
11   #include "otypes.h"
12 #include "platform.h"
12  
13   char    *shm_boundary = NULL;           /* boundary of shared memory */
14  
# Line 137 | Line 136 | addmodifier(char *modn, char *outf, char *binv, int bi
136   }
137  
138  
139 < /* add modifiers from a file list */
139 > /* Add modifiers from a file list */
140   void
141   addmodfile(char *fname, char *outf, char *binv, int bincnt)
142   {
# Line 159 | Line 158 | quit(                  /* quit program */
158   )
159   {
160          if (nchild > 0)         /* close children if any */
161 <                end_children();
161 >                end_children(code != 0);
162          exit(code);
163   }
164  
# Line 336 | Line 335 | rcontrib()
335                  if (raysleft && !--raysleft)
336                          break;          /* preemptive EOI */
337          }
338 <        if ((accumulate <= 0) | (account < accumulate)) {
338 >        if (nchild != -1 && (accumulate <= 0) | (account < accumulate)) {
339                  if (account < accumulate) {
340                          error(WARNING, "partial accumulation in final record");
341                          accumulate -= account;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines