You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, it appears that round-off error is occurring when an EnergyGrid instance is constructed directly from an std::vector<double>, as it first converts all of the values to floats, and then saves them as doubles. This is a remnant of when I used to store XS data as floats. It should suffice to just pass the energy argument to the energy_values_ member in the class initialization, and remove the entire for loop at line 63.
Currently, it appears that round-off error is occurring when an
EnergyGrid
instance is constructed directly from anstd::vector<double>
, as it first converts all of the values tofloat
s, and then saves them asdouble
s. This is a remnant of when I used to store XS data asfloat
s. It should suffice to just pass theenergy
argument to theenergy_values_
member in the class initialization, and remove the entire for loop at line 63.papillon-ndl/src/energy_grid.cpp
Line 63 in 1fcaffc
The text was updated successfully, but these errors were encountered: