mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Store reactions as a vector on Nuclide
This commit is contained in:
parent
2c8bdbba6e
commit
71e36db418
6 changed files with 164 additions and 55 deletions
|
|
@ -275,14 +275,6 @@ std::string reaction_name(int mt)
|
|||
// Fortran compatibility functions
|
||||
//==============================================================================
|
||||
|
||||
Reaction* reaction_from_hdf5(hid_t group, int* temperatures, int n)
|
||||
{
|
||||
std::vector<int> temps {temperatures, temperatures + n};
|
||||
return new Reaction{group, temps};
|
||||
}
|
||||
|
||||
void reaction_delete(Reaction* rx) { delete rx; }
|
||||
|
||||
int reaction_mt(Reaction* rx) { return rx->mt_; }
|
||||
|
||||
double reaction_q_value(Reaction* rx) { return rx->q_value_; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue