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

Comparing ray/src/rt/RtraceSimulManager.h (file contents):
Revision 2.11 by greg, Sat Aug 3 21:33:15 2024 UTC vs.
Revision 2.12 by greg, Mon Aug 5 19:51:18 2024 UTC

# Line 105 | Line 105 | class RtraceSimulManager : public RadSimulManager { (p
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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines