Fix bug in selecting data temperatures to read with temperature interpolation (#2734)

This commit is contained in:
Paul Romano 2023-10-30 07:30:04 -05:00 committed by GitHub
parent 02bd680965
commit 2c1e304892
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 2 deletions

View file

@ -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_ +