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

Comparing ray/src/util/dctimestep.c (file contents):
Revision 2.34 by greg, Wed Sep 17 22:40:49 2014 UTC vs.
Revision 2.35 by greg, Fri Sep 26 23:33:09 2014 UTC

# Line 26 | Line 26 | sum_images(const char *fspec, const CMATRIX *cv, FILE
26          int     i, y;
27  
28          if (cv->ncols != 1)
29 <                error(INTERNAL, "expected matrix in sum_images()");
29 >                error(INTERNAL, "expected vector in sum_images()");
30          for (i = 0; i < cv->nrows; i++) {
31                  const COLORV    *scv = cv_lval(cv,i);
32                  char            fname[1024];
# Line 185 | Line 185 | main(int argc, char *argv[])
185                  CMATRIX *smtx, *Dmat, *Tmat, *imtx;
186                                                  /* get sky vector/matrix */
187                  smtx = cm_load(argv[a+3], 0, nsteps, skyfmt);
188 +                nsteps = smtx->ncols;
189                                                  /* load BSDF */
190                  Tmat = cm_loadBTDF(argv[a+1]);
191                                                  /* load Daylight matrix */
# Line 198 | Line 199 | main(int argc, char *argv[])
199                  cm_free(imtx);
200          } else {                                /* sky vector/matrix only */
201                  cmtx = cm_load(argv[a+1], 0, nsteps, skyfmt);
202 +                nsteps = cmtx->ncols;
203          }
204                                                  /* prepare output stream */
205          if ((ofspec != NULL) & (nsteps == 1) && hasNumberFormat(ofspec)) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines