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

Comparing ray/src/gen/gendaymtx.c (file contents):
Revision 2.17 by greg, Sun Oct 26 17:35:53 2014 UTC vs.
Revision 2.19 by greg, Tue Dec 30 20:35:34 2014 UTC

# Line 393 | Line 393 | main(int argc, char *argv[])
393                          break;
394                  case '5':                       /* 5-phase calculation */
395                          nsuns = 1;
396 <                        fixed_sun_sa = 6.797e-05;
396 >                        fixed_sun_sa = PI/360.*atof(argv[++i]);
397 >                        fixed_sun_sa *= fixed_sun_sa*PI;
398                          break;
399                  default:
400                          goto userr;
# Line 520 | Line 521 | main(int argc, char *argv[])
521                  printf("NROWS=%d\n", nskypatch);
522                  printf("NCOLS=%d\n", ntsteps);
523                  printf("NCOMP=3\n");
524 <                fputformat(getfmtname(outfmt), stdout);
524 >                fputformat((char *)getfmtname(outfmt), stdout);
525                  putchar('\n');
526          }
527                                          /* patches are rows (outer sort) */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines