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.54 by greg, Wed Dec 15 01:38:50 2021 UTC vs.
Revision 2.55 by greg, Wed Nov 15 18:02:53 2023 UTC

# Line 1283 | Line 1283 | main(int argc, char *argv[])
1283                          yrs = argv[++a];
1284                          na = 0;
1285                          continue;
1286 <                case 'c':               /* number of samples */
1287 <                        sampcnt = atoi(argv[++a]);
1288 <                        if (sampcnt <= 0)
1289 <                                goto userr;
1290 <                        na = 0;         /* we re-add this later */
1286 >                case 'c':               /* spectral sampling or count */
1287 >                        switch (argv[a][2]) {
1288 >                        case 's':
1289 >                                na = 2;
1290 >                                break;
1291 >                        case 'w':
1292 >                                na = 3;
1293 >                                break;
1294 >                        case '\0':
1295 >                                sampcnt = atoi(argv[++a]);
1296 >                                if (sampcnt <= 0)
1297 >                                        goto userr;
1298 >                                na = 0;         /* we re-add this later */
1299 >                                break;
1300 >                        }
1301                          continue;
1302                  case 'I':               /* only for pass-through mode */
1303                  case 'i':

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines