# | Line 279 | Line 279 | class RcontribSimulManager : protected RtraceSimulMana | |
---|---|---|
279 | int PrepOutput(); | |
280 | /// Are we ready to compute some records? | |
281 | bool Ready() const { | |
282 | < | return rowsDone.Length(); |
282 | > | return (rowsDone.Length() > 0) & (accum > 0); |
283 | } | |
284 | /// Set number of computation threads (0 => #cores) | |
285 | int SetThreadCount(int nt = 0); | |
# | Line 317 | Line 317 | class RcontribSimulManager : protected RtraceSimulMana | |
317 | } | |
318 | /// Close octree, free data, return status | |
319 | int Cleanup(bool everything = false) { | |
320 | + | if (nkids < 0) return 0; // skip 4 child |
321 | if (rowsDone.Length()) { | |
322 | SetThreadCount(1); | |
323 | cow_doneshare(); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |