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

Comparing ray/src/rt/pmapdump.c (file contents):
Revision 2.16 by rschregle, Tue Jul 21 16:10:42 2020 UTC vs.
Revision 2.18 by rschregle, Thu Feb 18 17:08:50 2021 UTC

# Line 9 | Line 9 | static const char RCSid[] = "$Id$";
9  
10     Roland Schregle (roland.schregle@{hslu.ch, gmail.com})
11     (c) Fraunhofer Institute for Solar Energy Systems,
12 <       supported by the German Research Foundation (DFG)
13 <       as part of the FARESYS project
12 >       supported by the German Research Foundation
13 >       (DFG LU-204/10-2, "Fassadenintegrierte Regelsysteme FARESYS")
14     (c) Lucerne University of Applied Sciences and Arts,
15 <       supported by the Swiss National Science Foundation (SNSF, #147053)
15 >       supported by the Swiss National Science Foundation
16 >       (SNSF #147053, "Daylight Redirecting Components")
17     (c) Tokyo University of Science,
18 <       supported by the Japan Society for the Promotion of Science (JSPS)
19 <       under the Grants-in-Aid for Scientific Research Program (KAKENHI),
19 <       grant number JP19KK0115.
18 >       supported by the JSPS Grants-in-Aid for Scientific Research
19 >       (KAKENHI JP19KK0115, "Three-Dimensional Light Flow")  
20     ======================================================================
21    
22     $Id$
# Line 221 | Line 221 | int main (int argc, char** argv)
221              fputc('\n', stdout);
222           }
223        }
224 <      
225 <      /* Get number of photons */
226 <      pm.numPhotons = getint(sizeof(pm.numPhotons), pmapFile);
224 >
225 >      /* Get number of photons as fixed size, which possibly results in
226 >       * padding of MSB with 0 on some platforms.  Unlike sizeof() however,
227 >       * this ensures portability since this value may span 32 or 64 bits
228 >       * depending on platform.  */
229 >      pm.numPhotons = getint(PMAP_LONGSIZE, pmapFile);      
230  
231        /* Skip avg photon flux */
232        for (j = 0; j < 3; j++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines