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.18 by greg, Sun Oct 26 17:37:34 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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines