ENH: adjustments for ListOps subset, subsetList
- now takes a const UList<T> as input and returns a List<T> instead of trying to use the same ListType for both. This avoids previously encountered issues when a UList was passed in. - add specialized bitSet handling within subset(), where we can benefit from faster traversal of sparse selections and have a better estimate of the final output size.
Showing
- src/OpenFOAM/containers/Lists/ListOps/ListOps.C 1 addition, 1 deletionsrc/OpenFOAM/containers/Lists/ListOps/ListOps.C
- src/OpenFOAM/containers/Lists/ListOps/ListOps.H 60 additions, 21 deletionssrc/OpenFOAM/containers/Lists/ListOps/ListOps.H
- src/OpenFOAM/containers/Lists/ListOps/ListOpsTemplates.C 119 additions, 17 deletionssrc/OpenFOAM/containers/Lists/ListOps/ListOpsTemplates.C
Please register or sign in to comment