ENH: bitSet, PackedList copy construct a subset

Eg,
    processorPolyPatch pp = ...;

    UOPstream toNbr(pp.neighbProcNo(), pBufs);
    toNbr << PackedList<Width>(faceValues, pp.range());
This commit is contained in:
Mark Olesen
2018-08-01 17:54:53 +02:00
parent 51c32360cd
commit 9be9f02a12
6 changed files with 136 additions and 14 deletions

View File

@ -73,6 +73,9 @@ int main(int argc, char *argv[])
bitSet set2(100, { -1, 10, 25, 45});
Info<<"bitSet(label, labels): "; report(set2, true);
bitSet set2b(set2, labelRange(15, 30));
Info<<"bitSet slice(15,30) :"; report(set2b, true);
{
FixedList<label, 4> locs({ -1, 3, 4, 12});