mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
remove gsl-lite dependency (#3225)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
parent
bcc2a4c5f0
commit
aa4de82258
72 changed files with 458 additions and 247 deletions
|
|
@ -65,8 +65,7 @@ Reaction::Reaction(hid_t group, const vector<int>& temperatures)
|
|||
}
|
||||
}
|
||||
|
||||
double Reaction::xs(
|
||||
gsl::index i_temp, gsl::index i_grid, double interp_factor) const
|
||||
double Reaction::xs(int64_t i_temp, int64_t i_grid, double interp_factor) const
|
||||
{
|
||||
// If energy is below threshold, return 0. Otherwise interpolate between
|
||||
// nearest grid points
|
||||
|
|
@ -82,9 +81,8 @@ double Reaction::xs(const NuclideMicroXS& micro) const
|
|||
return this->xs(micro.index_temp, micro.index_grid, micro.interp_factor);
|
||||
}
|
||||
|
||||
double Reaction::collapse_rate(gsl::index i_temp,
|
||||
gsl::span<const double> energy, gsl::span<const double> flux,
|
||||
const vector<double>& grid) const
|
||||
double Reaction::collapse_rate(int64_t i_temp, span<const double> energy,
|
||||
span<const double> flux, const vector<double>& grid) const
|
||||
{
|
||||
// Find index corresponding to first energy
|
||||
const auto& xs = xs_[i_temp].value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue