diff --git a/docs/source/io_formats/statepoint.rst b/docs/source/io_formats/statepoint.rst index 2332ebf21..71025d1e6 100644 --- a/docs/source/io_formats/statepoint.rst +++ b/docs/source/io_formats/statepoint.rst @@ -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 /** diff --git a/src/tallies/filter_energyfunc.cpp b/src/tallies/filter_energyfunc.cpp index fb76fb215..b0a42d099 100644 --- a/src/tallies/filter_energyfunc.cpp +++ b/src/tallies/filter_energyfunc.cpp @@ -25,7 +25,7 @@ void EnergyFunctionFilter::from_xml(pugi::xml_node node) auto y = get_node_array(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"); diff --git a/tests/regression_tests/filter_energyfun/test.py b/tests/regression_tests/filter_energyfun/test.py index 93eed3327..b09f0e5ec 100644 --- a/tests/regression_tests/filter_energyfun/test.py +++ b/tests/regression_tests/filter_energyfun/test.py @@ -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()]