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

Comparing ray/src/util/rad.c (file contents):
Revision 2.101 by greg, Sat Oct 9 17:14:01 2010 UTC vs.
Revision 2.103 by greg, Sun Oct 10 15:36:18 2010 UTC

# Line 1261 | Line 1261 | rpict(                         /* run rpict and pfilt for each view */
1261   )
1262   {
1263   #define do_rpiece       (sfile[0]!='\0')
1264 <        char    combuf[4*PATH_MAX+512];
1264 >        char    combuf[5*PATH_MAX+512];
1265          char    rawfile[PATH_MAX], picfile[PATH_MAX];
1266          char    zopt[PATH_MAX+4], rep[PATH_MAX+16], res[32];
1267 <        char    rppopt[128], sfile[64], *pfile = NULL;
1267 >        char    rppopt[32], sfile[PATH_MAX], *pfile = NULL;
1268          char    pfopts[128];
1269          char    vs[32], *vw;
1270          int     vn, mult;
# Line 1316 | Line 1316 | rpict(                         /* run rpict and pfilt for each view */
1316                                          getview(0, vs) != NULL) {
1317                  if (!strcmp(c_rpict, DEF_RPICT_PATH) &&
1318                                  getview(1, NULL) == NULL) {
1319 <                        sprintf(sfile, "rpsync_%s.txt", vs);
1319 >                        sprintf(sfile, "%s_%s_rpsync.txt",
1320 >                                vdef(RAWFILE) ? vval(RAWFILE) : vval(PICTURE),
1321 >                                        vs);
1322                          strcpy(rppopt, "-PP pfXXXXXX");
1323                  } else {
1324                          strcpy(rppopt, "-S 1 -PP pfXXXXXX");
# Line 1359 | Line 1361 | rpict(                         /* run rpict and pfilt for each view */
1361                  if (do_rpiece) {
1362                          if (rfdt < oct1date || !fdate(sfile)) {
1363                                  int     xdiv = 8+nprocs/3, ydiv = 8+nprocs/3;
1364 <                                rfdt = 0;               /* start fresh */
1364 >                                if (rfdt >= oct1date) {
1365 >                                        fprintf(stderr,
1366 >                "%s: partial output not created with rpiece\n", rawfile);
1367 >                                        quit(1);
1368 >                                }
1369 >                                if (rfdt) {     /* start fresh */
1370 >                                        rmfile(rawfile);
1371 >                                        rfdt = 0;
1372 >                                }
1373                                  if (!silent)
1374                                          printf("\techo %d %d > %s\n",
1375                                                          xdiv, ydiv, sfile);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines