mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Clean up
This commit is contained in:
parent
d81f1b9c7b
commit
6db62984d7
7 changed files with 72 additions and 125 deletions
|
|
@ -14,9 +14,11 @@ Reaction::Reaction(hid_t group, const std::vector<int>& temperatures)
|
|||
{
|
||||
read_attribute(group, "Q_value", q_value_);
|
||||
read_attribute(group, "mt", mt_);
|
||||
int cm;
|
||||
read_attribute(group, "center_of_mass", cm);
|
||||
scatter_in_cm_ = (cm == 1);
|
||||
int tmp;
|
||||
read_attribute(group, "center_of_mass", tmp);
|
||||
scatter_in_cm_ = (tmp == 1);
|
||||
read_attribute(group, "summed", tmp);
|
||||
summed_ = (tmp == 1);
|
||||
|
||||
// Read cross section and threshold_idx data
|
||||
for (auto t : temperatures) {
|
||||
|
|
@ -85,6 +87,8 @@ double reaction_q_value(Reaction* rx) { return rx->q_value_; }
|
|||
|
||||
bool reaction_scatter_in_cm(Reaction* rx) { return rx->scatter_in_cm_; }
|
||||
|
||||
bool reaction_summed(Reaction* rx) { return rx->summed_; }
|
||||
|
||||
double reaction_product_decay_rate(Reaction* rx, int product)
|
||||
{
|
||||
return rx->products_[product - 1].decay_rate_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue