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

openmc-dev / openmc / 12776996362

14 Jan 2025 09:49PM UTC coverage: 84.938% (+0.2%) from 84.729%
12776996362

Pull #3133

github

web-flow
Merge 0495246d9 into 549cc0973
Pull Request #3133: Kinetics parameters using Iterated Fission Probability

318 of 330 new or added lines in 10 files covered. (96.36%)

1658 existing lines in 66 files now uncovered.

50402 of 59340 relevant lines covered (84.94%)

33987813.96 hits per line

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

50.0
/include/openmc/distribution_angle.h
1
//! \file distribution_angle.h
2
//! Angle distribution dependent on incident particle energy
3

4
#ifndef OPENMC_DISTRIBUTION_ANGLE_H
5
#define OPENMC_DISTRIBUTION_ANGLE_H
6

7
#include "hdf5.h"
8

9
#include "openmc/distribution.h"
10
#include "openmc/vector.h"
11

12
namespace openmc {
13

14
//==============================================================================
15
//! Angle distribution that depends on incident particle energy
16
//==============================================================================
17

18
class AngleDistribution {
19
public:
20
  AngleDistribution() = default;
3,277,368✔
21
  explicit AngleDistribution(hid_t group);
22

23
  //! Sample an angle given an incident particle energy
24
  //! \param[in] E Particle energy in [eV]
25
  //! \param[inout] seed pseudorandom number seed pointer
26
  //! \return Cosine of the angle in the range [-1,1]
27
  double sample(double E, uint64_t* seed) const;
28

29
  //! Determine whether angle distribution is empty
30
  //! \return Whether distribution is empty
UNCOV
31
  bool empty() const { return energy_.empty(); }
×
32

33
private:
34
  vector<double> energy_;
35
  vector<unique_ptr<Tabular>> distribution_;
36
};
37

38
} // namespace openmc
39

40
#endif // OPENMC_DISTRIBUTION_ANGLE_H
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

© 2025 Coveralls, Inc