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

Comparing ray/src/util/rfluxmtx.c (file contents):
Revision 2.58 by greg, Wed Mar 19 01:18:20 2025 UTC vs.
Revision 2.60 by greg, Tue Jun 3 21:31:51 2025 UTC

# Line 22 | Line 22 | static const char RCSid[] = "$Id$";
22   #define MAXRCARG        10000
23   #endif
24  
25 char            *progname;              /* global argv[0] */
26
25   int             verbose = 0;            /* verbose mode (< 0 no warnings) */
26  
27   char            *rcarg[MAXRCARG+1] = {"rcontrib", "-fo+"};
# Line 517 | Line 515 | finish_receiver(void)
515                  sprintf(sbuf, "RHS=%c1", curparams.sign);
516                  params = savqstr(sbuf);
517          }
518 <        if (!uniform & (curparams.slist->styp == ST_SOURCE)) {
518 >        if (!uniform) {
519                  SURF    *sp;
520                  for (sp = curparams.slist; sp != NULL; sp = sp->next)
521 <                        if (fabs(sp->area - PI) > 1e-3) {
521 >                        if (sp->styp == ST_SOURCE && fabs(sp->area - PI) > 1e-3) {
522                                  fprintf(stderr, "%s: source '%s' must be 180-degrees\n",
523                                                  progname, sp->sname);
524                                  exit(1);
# Line 1239 | Line 1237 | main(int argc, char *argv[])
1237          FILE    *rcfp;
1238          int     nsbins;
1239          int     a, i;
1240 +                                        /* set global progname */
1241 +        fixargv0(argv[0]);
1242                                          /* screen rcontrib options */
1243        progname = argv[0];
1243          for (a = 1; a < argc-2; a++) {
1244                  int     na;
1245                                          /* check for argument expansion */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines