23 |
|
#include "pmapdiag.h" |
24 |
|
#include "rcontrib.h" |
25 |
|
#include "otypes.h" |
26 |
+ |
#include "otspecial.h" |
27 |
|
#if NIX |
28 |
|
#include <sys/mman.h> |
29 |
|
#include <sys/wait.h> |
197 |
|
if (!nsources) |
198 |
|
error(USER, "no light sources in distribPhotonContrib"); |
199 |
|
|
199 |
– |
if (nsources > MAXMODLIST) |
200 |
– |
error(USER, "too many light sources in distribPhotonContrib"); |
201 |
– |
|
200 |
|
/* Allocate photon flux per light source; this differs for every |
201 |
|
* source as all sources contribute the same number of distributed |
202 |
|
* photons (srcDistribTarget), hence the number of photons emitted per |