Store reactions as a vector on Nuclide

This commit is contained in:
Paul Romano 2018-11-16 16:22:22 -06:00
parent 2c8bdbba6e
commit 71e36db418
6 changed files with 164 additions and 55 deletions

View file

@ -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_; }