ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/Development/ray/src/rt/rxcmain.cpp
(Generate patch)

Comparing ray/src/rt/rxcmain.cpp (file contents):
Revision 2.17 by greg, Tue Apr 22 17:12:25 2025 UTC vs.
Revision 2.19 by greg, Thu Oct 16 18:36:23 2025 UTC

# Line 23 | Line 23 | int    outfmt = 'f';                   /* output format */
23  
24   int     report_intvl = 0;               /* reporting interval (seconds) */
25  
26 extern char *   progname;               // global argv[0]
27
26   RcontribSimulManager    myRCmanager;    // global rcontrib simulation manager
27  
28   #define RCONTRIB_FEATURES       "Multiprocessing\n" \
# Line 349 | Line 347 | main(int argc, char *argv[])
347                  myRCmanager.outOp = RCOnew;
348                                          // rval = # rows recovered
349          rval = myRCmanager.PrepOutput();
350 <                                        // check if recovered everything
351 <        if (rval >= myRCmanager.GetRowMax()) {
350 >
351 >        if (rval < 0)                   // PrepOutput() failure?
352 >                error(USER, "issue loading or creating output(s)");
353 >                                        // in case we recovered everything
354 >        if (rval >= myRCmanager.GetRowMax())
355                  error(WARNING, "nothing left to compute");
356 <                quit(0);
357 <        }
357 <        rxcontrib(rval);                /* trace ray contributions (loop) */
356 >        else
357 >                rxcontrib(rval);        // trace ray contributions (loop)
358  
359 <        quit(0);        /* exit clean */
359 >        quit(0);        // exit clean
360  
361   badopt:
362          fprintf(stderr,

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)