14 |
|
#include "source.h" |
15 |
|
#include "ambient.h" |
16 |
|
|
17 |
– |
char *shm_boundary = NULL; /* boundary of shared memory */ |
18 |
– |
|
17 |
|
int gargc; /* global argc */ |
18 |
|
char **gargv; /* global argv */ |
19 |
|
char *octname; /* global octree name */ |
225 |
|
yres = atoi(argv[++i]); |
226 |
|
break; |
227 |
|
case 'w': /* warnings */ |
228 |
< |
rval = erract[WARNING].pf != NULL; |
228 |
> |
rval = (erract[WARNING].pf != NULL); |
229 |
|
bool(2,rval); |
230 |
|
if (rval) erract[WARNING].pf = wputs; |
231 |
|
else erract[WARNING].pf = NULL; |
337 |
|
|
338 |
|
setambient(); /* initialize ambient calculation */ |
339 |
|
|
340 |
< |
if (nproc > 1) { |
343 |
< |
preload_objs(); /* preload auxiliary data */ |
344 |
< |
/* set shared memory boundary */ |
345 |
< |
shm_boundary = strcpy((char *)malloc(16), "SHM_BOUNDARY"); |
346 |
< |
} |
347 |
< |
rcontrib(); /* trace ray contributions */ |
340 |
> |
rcontrib(); /* trace ray contributions (loop) */ |
341 |
|
|
342 |
|
ambsync(); /* flush ambient file */ |
343 |
|
|