| 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 |
|
|
| 14 |
|
$Id$ |
| 19 |
|
#include "pmapdiag.h" |
| 20 |
|
#include "pmapdata.h" |
| 21 |
|
#include "standard.h" |
| 18 |
– |
#include <signal.h> |
| 22 |
|
|
| 23 |
|
|
| 24 |
|
|
| 122 |
|
eputs(errmsg); |
| 123 |
|
fflush(stderr); |
| 124 |
|
|
| 125 |
< |
#ifndef BSD |
| 125 |
> |
#ifdef SIGCONT |
| 126 |
|
signal(SIGCONT, pmapPreCompReport); |
| 127 |
|
#endif |
| 128 |
|
} |
| 183 |
|
eputs(errmsg); |
| 184 |
|
fflush(stderr); |
| 185 |
|
|
| 186 |
< |
#ifndef BSD |
| 186 |
> |
#ifndef SIGCONT |
| 187 |
|
signal(SIGCONT, pmapDistribReport); |
| 188 |
|
#endif |
| 189 |
|
} |
| 193 |
|
void pmapPreCompReport() |
| 194 |
|
/* Report global photon precomputation progress */ |
| 195 |
|
{ |
| 196 |
+ |
char tmp [512]; |
| 197 |
+ |
|
| 198 |
|
repLastTime = time(NULL); |
| 199 |
|
sprintf(errmsg, "%lu precomputed, ", repProgress); |
| 200 |
|
|