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

Comparing ray/src/rt/rpmain.c (file contents):
Revision 2.35 by greg, Wed Oct 30 16:47:03 2024 UTC vs.
Revision 2.39 by greg, Wed Apr 23 01:57:04 2025 UTC

# Line 13 | Line 13 | static const char      RCSid[] = "$Id$";
13   #include  "platform.h"
14   #include  "rtprocess.h" /* getpid() */
15   #include  "ray.h"
16 + #include  "func.h"
17   #include  "source.h"
18   #include  "ambient.h"
19   #include  "random.h"
# Line 32 | Line 33 | char  *octname;                                /* octree name */
33   char  *sigerr[NSIG];                    /* signal error messages */
34   char  *errfile = NULL;                  /* error output file */
35  
35 extern time_t  time();
36   extern time_t  tstart;                  /* start time */
37  
38   extern int  ralrm;                      /* seconds between reports */
# Line 109 | Line 109 | main(int  argc, char  *argv[])
109          strcat(RFeatureList, RPICT_FEATURES);
110          if (argc > 1 && !strcmp(argv[1], "-features"))
111                  return feature_status(argc-2, argv+2);
112 +                                        /* initialize calcomp routines */
113 +        initfunc();
114                                          /* option city */
115          for (i = 1; i < argc; i++) {
116                                                  /* expand arguments */
# Line 241 | Line 243 | main(int  argc, char  *argv[])
243                                  check(2,"s");
244                          recover = argv[++i];
245                          break;
244                case 't':                               /* timer */
245                        check(2,"i");
246                        ralrm = atoi(argv[++i]);
247                        break;
246   #ifdef  PERSIST
247                  case 'P':                               /* persist file */
248                          if (argv[i][2] == 'P') {
# Line 257 | Line 255 | main(int  argc, char  *argv[])
255                          persistfile(argv[++i]);
256                          break;
257   #endif
258 +                case 't':                               /* timer */
259 +                        check(2,"i");
260 +                        ralrm = atoi(argv[++i]);
261 +                        break;
262                  case 'w':                               /* warnings */
263                          rval = erract[WARNING].pf != NULL;
264                          check_bool(2,rval);
# Line 354 | Line 356 | main(int  argc, char  *argv[])
356          ray_init_pmap();     /* PMAP: set up & load photon maps */
357  
358          marksources();                  /* find and mark sources */
357
359          setambient();                   /* initialize ambient calculation */
360          
361          fflush(stdout);                 /* in case we're duplicating header */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines