mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Adding additional interpolation types to the constructor
This commit is contained in:
parent
3c3ce6e2e7
commit
84276c54bf
1 changed files with 4 additions and 0 deletions
|
|
@ -38,6 +38,10 @@ void EnergyFunctionFilter::from_xml(pugi::xml_node node)
|
|||
interpolation_ = Interpolation::log_lin;
|
||||
} else if (interpolation == "log-log") {
|
||||
interpolation_ = Interpolation::log_log;
|
||||
} else if (interpolation == "quadratic") {
|
||||
interpolation_ = Interpolation::quadratic;
|
||||
} else if (interpolation == "cubic") {
|
||||
interpolation_ = Interpolation::cubic;
|
||||
} else {
|
||||
fatal_error(fmt::format(
|
||||
"Found invalid interpolation type '{}' on EnergyFunctionFilter {}.",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue