mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Fix bug in selecting data temperatures to read with temperature interpolation (#2734)
This commit is contained in:
parent
02bd680965
commit
2c1e304892
2 changed files with 37 additions and 2 deletions
|
|
@ -176,14 +176,14 @@ Nuclide::Nuclide(hid_t group, const vector<double>& temperature)
|
|||
if (!contains(temps_to_read, temps_available.front())) {
|
||||
temps_to_read.push_back(std::round(temps_available.front()));
|
||||
}
|
||||
break;
|
||||
continue;
|
||||
}
|
||||
if (std::abs(T_desired - temps_available.back()) <=
|
||||
settings::temperature_tolerance) {
|
||||
if (!contains(temps_to_read, temps_available.back())) {
|
||||
temps_to_read.push_back(std::round(temps_available.back()));
|
||||
}
|
||||
break;
|
||||
continue;
|
||||
}
|
||||
fatal_error(
|
||||
"Nuclear data library does not contain cross sections for " + name_ +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue