Skip to content

Commit

Permalink
Avoid narrowing conversion in solid_temperature indexing.
Browse files Browse the repository at this point in the history
  • Loading branch information
aprilnovak committed Aug 9, 2019
1 parent 9ea78df commit 2fe188d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/enrico/surrogate_heat_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ class SurrogateHeatDriver : public HeatFluidsDriver {
xt::xtensor<int, 1> fluid_mask() const final;

//! Returns solid temperature in [K] for given region
double solid_temperature(int pin, int axial, int ring) const;
double solid_temperature(std::size_t pin, std::size_t axial, std::size_t ring) const;

// Data on fuel pins
xt::xtensor<double, 2> pin_centers_; //!< (x,y) values for center of fuel pins
Expand Down
2 changes: 1 addition & 1 deletion src/surrogate_heat_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ xt::xtensor<double, 1> SurrogateHeatDriver::temperature() const
return xt::concatenate(xt::xtuple(Ts, Tf), 0);
}

double SurrogateHeatDriver::solid_temperature(int pin, int axial, int ring) const
double SurrogateHeatDriver::solid_temperature(std::size_t pin, std::size_t axial, std::size_t ring) const
{
return solid_temperature_(pin, axial, ring);
}
Expand Down

0 comments on commit 2fe188d

Please sign in to comment.