• 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

0.0
/include/openmc/tallies/filter_cell.h
1
#ifndef OPENMC_TALLIES_FILTER_CELL_H
2
#define OPENMC_TALLIES_FILTER_CELL_H
3

4
#include <cstdint>
5
#include <unordered_map>
6

7
#include <gsl/gsl-lite.hpp>
8

9
#include "openmc/tallies/filter.h"
10
#include "openmc/vector.h"
11

12
namespace openmc {
13

14
//==============================================================================
15
//! Specifies which geometric cells tally events reside in.
16
//==============================================================================
17

18
class CellFilter : public Filter {
19
public:
20
  //----------------------------------------------------------------------------
21
  // Constructors, destructors
22

UNCOV
23
  ~CellFilter() = default;
×
UNCOV
24

×
UNCOV
25
  //----------------------------------------------------------------------------
×
26
  // Methods
27

28
  std::string type_str() const override { return "cell"; }
29
  FilterType type() const override { return FilterType::CELL; }
30

31
  void from_xml(pugi::xml_node node) override;
32

33
  void get_all_bins(const Particle& p, TallyEstimator estimator,
34
    FilterMatch& match) const override;
35

36
  void to_statepoint(hid_t filter_group) const override;
37

38
  std::string text_label(int bin) const override;
39

40
  //----------------------------------------------------------------------------
41
  // Accessors
42

43
  const vector<int32_t>& cells() const { return cells_; }
44

45
  void set_cells(gsl::span<int32_t> cells);
46

47
protected:
48
  //----------------------------------------------------------------------------
49
  // Data members
50

51
  //! The indices of the cells binned by this filter.
52
  vector<int32_t> cells_;
53

54
  //! A map from cell indices to filter bin indices.
55
  std::unordered_map<int32_t, int> map_;
56
};
57

58
} // namespace openmc
59
#endif // OPENMC_TALLIES_FILTER_CELL_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