ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/RcontribSimulManager.h
(Generate patch)

Comparing ray/src/rt/RcontribSimulManager.h (file contents):
Revision 2.2 by greg, Tue Oct 29 19:47:19 2024 UTC vs.
Revision 2.5 by greg, Wed Nov 6 18:28:52 2024 UTC

# Line 154 | Line 154 | extern lut_free_t      FreeRcMod;
154   */
155  
156   /// Output channel opening options: new/exclusive, overwrite if exists, or recover data
157 < enum RCOutputOp {RCOnew, RCOforce, RCOrecover};
157 > enum RCOutputOp {RCOnew=0, RCOforce, RCOrecover};
158  
159   /// Converts above to RdataShare open flags (may be adjusted by calling program)
160   extern int      RSDOflags[];
# 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();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines