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

Comparing ray/src/util/rtcontrib.c (file contents):
Revision 1.55 by greg, Wed Dec 9 21:43:35 2009 UTC vs.
Revision 1.56 by greg, Fri Jun 11 20:26:09 2010 UTC

# Line 378 | Line 378 | main(int argc, char *argv[])
378          rtargv[rtargc++] = contrib ? RTCONTRIB : RTCOEFF;
379                                  /* just asking for defaults? */
380          if (!strcmp(argv[i], "-defaults")) {
381 <                char    sxres[16], syres[16];
381 >                char    nps[8], sxres[16], syres[16];
382                  char    *rtpath;
383                printf("-n %-2d\t\t\t\t# number of processes\n", nprocs);
383                  printf("-c %-5d\t\t\t# accumulated rays per record\n",
384                                  accumulate);
385                  printf("-V%c\t\t\t\t# output %s\n", contrib ? '+' : '-',
386                                  contrib ? "contributions" : "coefficients");
387                  fflush(stdout);                 /* report OUR options */
388 +                rtargv[rtargc++] = "-n";
389 +                sprintf(nps, "%d", nprocs);
390 +                rtargv[rtargc++] = nps;
391                  rtargv[rtargc++] = header ? "-h+" : "-h-";
392                  sprintf(fmt, "-f%c%c", inpfmt, outfmt);
393                  rtargv[rtargc++] = fmt;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines