mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
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:
@ -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});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user