mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Remove less_equal from call to is_sorted
This causes issues if you compile with -D_GLIBCXX_DEBUG. Underlying reason is described in https://github.com/xtensor-stack/xtensor/issues/2296
This commit is contained in:
parent
7b89ce11e7
commit
c0e5ed2971
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ void TimeFilter::set_bins(gsl::span<const double> bins)
|
|||
bins_.reserve(bins.size());
|
||||
|
||||
// Ensure time bins are sorted
|
||||
if (!std::is_sorted(bins.cbegin(), bins.cend(), std::less_equal<double>())) {
|
||||
if (!std::is_sorted(bins.cbegin(), bins.cend())) {
|
||||
throw std::runtime_error {"Time bins must be monotonically increasing."};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue