mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: add single-parameter sortedOrder() function
This commit is contained in:
committed by
Andrew Heather
parent
5788fe056c
commit
1d86fc4f6b
@ -58,10 +58,12 @@ int main(int argc, char *argv[])
|
||||
SortableList<label> list1r(list1.size());
|
||||
list1r = list1;
|
||||
|
||||
Info<< "unsorted: " << orig << endl;
|
||||
Info<< "unsorted: " << orig << nl
|
||||
<< "order: " << sortedOrder(list1) << endl;
|
||||
sort(list1);
|
||||
Info<< "sorted: " << list1 << nl
|
||||
<< "indices: " << order << endl;
|
||||
<< "indices: " << order << nl
|
||||
<< "order: " << sortedOrder(list1) << endl;
|
||||
|
||||
list1r.reverseSort();
|
||||
Info<< "reverse ..." << nl;
|
||||
|
||||
Reference in New Issue
Block a user