148 |
|
|
149 |
|
int bi = 0; // get bin index |
150 |
|
if (mp->binv) { |
151 |
< |
worldfunc(RCCONTEXT, r); // compute bin # |
151 |
> |
worldfunc(RCCONTEXT, r); |
152 |
|
set_eparams(mp->params); |
153 |
|
double bval = evalue(mp->binv); |
154 |
|
if (bval <= -.5) |
324 |
|
error(INTERNAL, "PrepOutput() called before octree & modifiers assigned"); |
325 |
|
return -1; |
326 |
|
} |
327 |
+ |
if (!cdsF) { |
328 |
+ |
error(INTERNAL, "missing RdataShare constructor call (*cdsF)"); |
329 |
+ |
return -1; |
330 |
+ |
} |
331 |
|
if (lu_doall(&modLUT, checkModExists, NULL) < 0) |
332 |
|
return -1; |
333 |
|
|
800 |
|
return 0; |
801 |
|
} |
802 |
|
if (nt < 0) |
803 |
< |
return nkids; |
803 |
> |
return NThreads(); |
804 |
|
if (!nt) nt = GetNCores(); |
805 |
|
int status = 0; |
806 |
|
if (nt == 1) |
813 |
|
sprintf(errmsg, "non-zero (%d) status from child", status); |
814 |
|
error(WARNING, errmsg); |
815 |
|
} |
816 |
< |
return nkids; |
816 |
> |
return NThreads(); |
817 |
|
} |