mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 13:15:39 -04:00
Some cleanup
This commit is contained in:
parent
66ff5b873d
commit
bdf73abb06
3 changed files with 3 additions and 4 deletions
|
|
@ -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>/**
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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()]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue