mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Move tally scores to C++
This commit is contained in:
parent
391c7536d4
commit
ed628b96d2
8 changed files with 432 additions and 514 deletions
|
|
@ -21,6 +21,10 @@ class Tally {
|
|||
public:
|
||||
Tally() {}
|
||||
|
||||
void set_scores(pugi::xml_node node);
|
||||
|
||||
void set_scores(std::vector<std::string> scores);
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// Methods for getting and setting filter/stride data.
|
||||
|
||||
|
|
@ -37,6 +41,8 @@ public:
|
|||
//----------------------------------------------------------------------------
|
||||
// Other methods.
|
||||
|
||||
void init_scores(pugi::xml_node node);
|
||||
|
||||
void init_triggers(pugi::xml_node node, int i_tally);
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
|
@ -52,6 +58,8 @@ public:
|
|||
//! Whether this tally is currently being updated
|
||||
bool active_ {false};
|
||||
|
||||
std::vector<int> scores_; //!< Filter integrands (e.g. flux, fission)
|
||||
|
||||
//! Index of each nuclide to be tallied. -1 indicates total material.
|
||||
std::vector<int> nuclides_;
|
||||
|
||||
|
|
@ -67,6 +75,8 @@ public:
|
|||
int energyout_filter_ {C_NONE};
|
||||
int delayedgroup_filter_ {C_NONE};
|
||||
|
||||
bool depletion_rx_ {false}; //!< Has depletion reactions (e.g. (n,2n))
|
||||
|
||||
std::vector<Trigger> triggers_;
|
||||
|
||||
int deriv_ {C_NONE}; //!< Index of a TallyDerivative object for diff tallies.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue