Skip to content
Snippets Groups Projects
Commit a43015f8 authored by Markus Blatt's avatar Markus Blatt
Browse files

USe std::is_sorted to fix compile issue with DUNE_ISTL_WITH_CHECKING.

parent b6080f4f
No related branches found
No related tags found
No related merge requests found
......@@ -1825,14 +1825,8 @@ namespace Dune
// DUNE_THROW(ISTLError, numOfOwnVtx<<"!="<<indexMap.globalOwnerVertices<<" owners missing or additional ones"
// <<" during repartitioning.");
// }
auto index=outputIndexSet.begin();
if(index!=end) {
++index;
for(auto old = outputIndexSet.begin(); index != end; old=index++) {
if(old->global()>index->global())
DUNE_THROW(ISTLError, "Index set's globalindex not sorted correctly");
}
}
std::is_sorted(outputIndexSet.begin(), outputIndexSet.end(),
[](const auto& v1, const auto& v2){ return v1.global() < v2.global();});
#endif
if(verbose) {
oocomm.communicator().barrier();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment