From: Martin Kronbichler Date: Thu, 19 Sep 2019 16:41:19 +0000 (+0200) Subject: Add comment about an if X-Git-Tag: v9.2.0-rc1~1073^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8800%2Fhead;p=dealii.git Add comment about an if --- diff --git a/include/deal.II/base/index_set.h b/include/deal.II/base/index_set.h index f4e6dfe24a..ef6a55d575 100644 --- a/include/deal.II/base/index_set.h +++ b/include/deal.II/base/index_set.h @@ -1693,6 +1693,11 @@ IndexSet::add_indices(const ForwardIterator &begin, const ForwardIterator &end) tmp_ranges.emplace_back(begin_index, end_index); p = q; + + // if the starting index of the next go-around of the for loop is less + // than the end index of the one just identified, then we will have at + // least one pair of ranges that are not sorted, and consequently the + // whole collection of ranges is not sorted. if (p != end && *p < end_index) ranges_are_sorted = false; }