187 |
|
if (inform != 'a') |
188 |
|
SET_FILE_BINARY(inpfp); |
189 |
|
/* set up output */ |
190 |
< |
if (castonly || every_out[0] != NULL) |
190 |
> |
if (castonly || every_out[0] != NULL) { |
191 |
|
nproc = 1; /* don't bother multiprocessing */ |
192 |
< |
else if (nproc <= 0) // need to get default for system? |
193 |
< |
nproc = myRTmanager.GetNCores(); |
192 |
> |
} else if (nproc <= 0) { // need to get default for system? |
193 |
> |
nproc = myRTmanager.GetNCores() + nproc; |
194 |
> |
if (nproc <= 0) nproc = 1; |
195 |
> |
} |
196 |
|
if ((flushIntvl > 0) & (nproc > flushIntvl)) { |
197 |
|
error(WARNING, "reducing number of processes to match flush interval"); |
198 |
|
nproc = flushIntvl; |