44 |
|
/// Add a line to header (adds newline if none) |
45 |
|
bool AddHeader(const char *str); |
46 |
|
/// Append program line to header |
47 |
< |
bool AddHeader(int ac, const char *av[]); |
47 |
> |
bool AddHeader(int ac, char *av[]); |
48 |
|
/// Get header lines or empty string |
49 |
|
const char * GetHeader() const { |
50 |
|
return hlen ? header : ""; |
105 |
|
int SetThreadCount(int nt = 0) { |
106 |
|
if (nt <= 0) nt = castonly ? 1 : GetNCores(); |
107 |
|
if (nt == NThreads()) return nt; |
108 |
< |
if (FlushQueue() < 0) return 0; |
108 |
> |
if (nt < NThreads() && FlushQueue() < 0) return 0; |
109 |
|
return RadSimulManager::SetThreadCount(nt); |
110 |
|
} |
111 |
|
/// Add ray bundle to queue w/ optional 1st ray ID |