• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

NREL / SolTrace / 20282790366

16 Dec 2025 09:09PM UTC coverage: 88.351% (-0.8%) from 89.184%
20282790366

Pull #91

github

web-flow
Merge 253307deb into a73a760a4
Pull Request #91: Implement multi-threading in NativeRunner

366 of 468 new or added lines in 11 files covered. (78.21%)

34 existing lines in 6 files now uncovered.

6007 of 6799 relevant lines covered (88.35%)

7475791.81 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/coretrace/simulation_runner/native_runner/pt_optimizations.hpp
1

2
#ifndef SOLTRACE_PT_OPTIMIZATIONS_H
3
#define SOLTRACE_PT_OPTIMIZATIONS_H
4

5
#include "native_runner_types.hpp"
6
#include "treemesh.hpp"
7

8
namespace SolTrace::NativeRunner {
9

10
struct eprojdat
11
{
12
    TElement *el_addr;
13
    double d_proj;
14
    double az;
15
    double zen;
16

17
    eprojdat() {};
UNCOV
18
    eprojdat(TElement *e, double d, double a, double z)
×
UNCOV
19
    {
×
UNCOV
20
        el_addr = e;
×
UNCOV
21
        d_proj = d;
×
UNCOV
22
        az = a;
×
UNCOV
23
        zen = z;
×
UNCOV
24
    };
×
25
};
26

27
// Comparison function for sorting vector of eprojdat
UNCOV
28
static inline bool eprojdat_compare_refactored(const eprojdat &A, const eprojdat &B)
×
29
{
UNCOV
30
    return A.d_proj > B.d_proj;
×
31
};
32

33
void SetupPTOptimizations(TSystem *System,
34
                          const bool AsPowerTower,
35
                          st_hash_tree &sun_hash,
36
                          st_hash_tree &rec_hash,
37
                          double (&reccm_helio)[3]);
38

39
uint_fast64_t GetPTElements(const bool AsPowerTower,
40
                            const tstage_ptr Stage,
41
                            const int i,
42
                            const bool in_multi_hit_loop, 
43
                            const double (&PosRayStage)[3],
44
                            const double (&reccm_helio)[3], 
45
                            st_hash_tree *rec_hash,
46
                            const std::vector<void *> &sunint_elements,
47
                            std::vector<void *> &reflint_elements,
48
                            bool &has_elements);
49

50
} // namespace SolTrace::NativeRunner
51

52
#endif
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc