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.4 by greg, Tue Jun 12 17:20:44 2012 UTC vs.
Revision 2.5 by greg, Wed Jun 13 00:16:42 2012 UTC

# Line 212 | Line 212 | rcinit()
212          if ((nproc > 1) & (accumulate <= 0))
213                  put_zero_record(0);     /* prime our queue to accumulate */
214  
215        if (recover) {                  /* recover previous output? */
216                if (accumulate <= 0) {
217                        reload_output();
218                        if (nproc > 1)
219                                queue_modifiers();
220                } else
221                        recover_output();
222        }
215          if (yres > 0) {                 /* set up flushing & ray counts */
216                  if (xres > 0)
217                          raysleft = (RNUMBER)xres*yres;
# Line 234 | Line 226 | rcinit()
226          for (i = 0; i < nsources; i++)
227                  source[i].sflags |= SFOLLOW;
228  
229 <        if (nproc == 1 || in_rchild())  /* single process or child */
229 >        if (nproc > 1 && in_rchild())   /* forked child? */
230                  return;                 /* return to main processing loop */
231 +
232 +        if (recover) {                  /* recover previous output? */
233 +                if (accumulate <= 0) {
234 +                        reload_output();
235 +                        if (nproc > 1)
236 +                                queue_modifiers();
237 +                } else
238 +                        recover_output();
239 +        }
240 +        if (nproc == 1)                 /* single process? */
241 +                return;
242  
243          parental_loop();                /* else run controller */
244          quit(0);                        /* parent musn't return! */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines