1 |
+ |
#ifndef lint |
2 |
+ |
static const char RCSid[] = "$Id$"; |
3 |
+ |
#endif |
4 |
|
/* |
5 |
|
================================================================== |
6 |
|
Photon map diagnostic output and progress reports |
7 |
|
|
8 |
|
Roland Schregle (roland.schregle@{hslu.ch, gmail.com}) |
9 |
|
(c) Fraunhofer Institute for Solar Energy Systems, |
10 |
< |
Lucerne University of Applied Sciences & Arts |
10 |
> |
(c) Lucerne University of Applied Sciences and Arts, |
11 |
> |
supported by the Swiss National Science Foundation (SNSF, #147053) |
12 |
|
================================================================== |
13 |
|
|
10 |
– |
$Id$ |
14 |
|
*/ |
15 |
|
|
16 |
|
|
18 |
|
#include "pmapdiag.h" |
19 |
|
#include "pmapdata.h" |
20 |
|
#include "standard.h" |
18 |
– |
#include <signal.h> |
21 |
|
|
22 |
|
|
23 |
|
|
121 |
|
eputs(errmsg); |
122 |
|
fflush(stderr); |
123 |
|
|
124 |
< |
#ifndef BSD |
124 |
> |
#ifdef SIGCONT |
125 |
|
signal(SIGCONT, pmapPreCompReport); |
126 |
|
#endif |
127 |
|
} |
182 |
|
eputs(errmsg); |
183 |
|
fflush(stderr); |
184 |
|
|
185 |
< |
#ifndef BSD |
185 |
> |
#ifndef SIGCONT |
186 |
|
signal(SIGCONT, pmapDistribReport); |
187 |
|
#endif |
188 |
|
} |
192 |
|
void pmapPreCompReport() |
193 |
|
/* Report global photon precomputation progress */ |
194 |
|
{ |
195 |
+ |
char tmp [512]; |
196 |
+ |
|
197 |
|
repLastTime = time(NULL); |
198 |
|
sprintf(errmsg, "%lu precomputed, ", repProgress); |
199 |
|
|