Some cleanup

This commit is contained in:
Patrick Shriwise 2022-07-31 01:05:42 -05:00
parent 66ff5b873d
commit bdf73abb06
3 changed files with 3 additions and 4 deletions

View file

@ -108,8 +108,8 @@ The current version of the statepoint file format is 17.0.
interpolation. Only used for 'energyfunction' filters.
- **y** (*double[]*) -- Interpolant values for energyfunction
interpolation. Only used for 'energyfunction' filters.
- **interpolation** (*int*) -- Interpolation type. One of
(1 - linear-linear or 2 - log-log). Only used for 'energyfunction'
- **interpolation** (*int*) -- Interpolation type. Either
1 (linear-linear) or 2 (log-log). Only used for 'energyfunction'
filters.
**/tallies/derivatives/derivative <id>/**

View file

@ -25,7 +25,7 @@ void EnergyFunctionFilter::from_xml(pugi::xml_node node)
auto y = get_node_array<double>(node, "y");
// use linear-linear interpolation by default
// default to linear-linear interpolation
interpolation_ = Interpolation::lin_lin;
if (check_for_node(node, "interpolation")) {
std::string interpolation = get_node_value(node, "interpolation");

View file

@ -41,7 +41,6 @@ def model():
filt3 = openmc.EnergyFunctionFilter(x, y)
filt3.interpolation = 'log-log'
print(filt3)
# Make tallies
tallies = [openmc.Tally(), openmc.Tally(), openmc.Tally()]