diff --git a/applications/test/HashSet/Test-hashSet.C b/applications/test/HashSet/Test-hashSet.C index eeae7ff0d0..5316f05e3f 100644 --- a/applications/test/HashSet/Test-hashSet.C +++ b/applications/test/HashSet/Test-hashSet.C @@ -188,10 +188,10 @@ int main(int argc, char *argv[]) Info<< "setB : " << setB << endl; labelPair pair(12, 15); - setB.set(pair); + setB.setMany(pair); Info<< "setB : " << setB << endl; - setB.unset(pair); + setB.unsetMany(pair); labelHashSet setC(1); @@ -257,7 +257,7 @@ int main(int argc, char *argv[]) someLst[elemI] = elemI*elemI; } - label added = setD.set(someLst); + label added = setD.setMany(someLst); Info<< "added " << added << " from " << someLst.size() << endl; Info<< "setD : " << flatOutput(setD) << endl; diff --git a/applications/test/edges/Test-edges.C b/applications/test/edges/Test-edges.C index 51da417de3..68de5446ee 100644 --- a/applications/test/edges/Test-edges.C +++ b/applications/test/edges/Test-edges.C @@ -94,7 +94,7 @@ int main(int argc, char *argv[]) e4.start() = e4.end() = -1; Info<< "insert from list\n"; labelHashSet newIndices({2, -1, 2, 1, 4, 1, 2, 3}); - e4.insert(newIndices.toc()); + e4.insertMany(newIndices.toc()); printInfo(e4); e4.start() = e4.end() = -1; @@ -105,12 +105,12 @@ int main(int argc, char *argv[]) FixedList otherIndices{12, 2, -1, 1, 4, 1, 2, 3}; e4.start() = e4.end() = -1; Info<< "insert from list: " << otherIndices << nl; - e4.insert(otherIndices); + e4.insertMany(otherIndices); printInfo(e4); e4.start() = e4.end(); Info<< "erase from list: " << otherIndices << nl; - Info<< "removed " << e4.erase(otherIndices) << " values" << nl; + Info<< "removed " << e4.eraseMany(otherIndices) << " values" << nl; printInfo(e4); for (label i : {-1, 0, 1, 3}) diff --git a/applications/test/sizeof/Test-sizeof.C b/applications/test/sizeof/Test-sizeof.C index 93358f7af7..40f33de650 100644 --- a/applications/test/sizeof/Test-sizeof.C +++ b/applications/test/sizeof/Test-sizeof.C @@ -32,6 +32,8 @@ Description #include "dictionary.H" #include "nil.H" #include "IOstreams.H" +#include "PstreamBuffers.H" +#include "Time.H" namespace Foam { @@ -101,6 +103,9 @@ int main(int argc, char *argv[]) cout<<"string:" << sizeof(Foam::string) << nl; } + cout<<"IOstream:" << sizeof(Foam::IOstream) << nl; + cout<<"PstreamBuffers:" << sizeof(Foam::PstreamBuffers) << nl; + cout<<"Time:" << sizeof(Foam::Time) << nl; Info << "---\nEnd\n" << endl; diff --git a/applications/utilities/mesh/advanced/refineWallLayer/refineWallLayer.C b/applications/utilities/mesh/advanced/refineWallLayer/refineWallLayer.C index aac1d730d5..f01fa003e4 100644 --- a/applications/utilities/mesh/advanced/refineWallLayer/refineWallLayer.C +++ b/applications/utilities/mesh/advanced/refineWallLayer/refineWallLayer.C @@ -122,10 +122,7 @@ int main(int argc, char *argv[]) const labelList& pCells = mesh.pointCells()[meshPointi]; - forAll(pCells, pCelli) - { - cutCells.insert(pCells[pCelli]); - } + cutCells.insertMany(pCells); } } diff --git a/applications/utilities/mesh/advanced/refinementLevel/refinementLevel.C b/applications/utilities/mesh/advanced/refinementLevel/refinementLevel.C index 463d1b689e..468ede3453 100644 --- a/applications/utilities/mesh/advanced/refinementLevel/refinementLevel.C +++ b/applications/utilities/mesh/advanced/refinementLevel/refinementLevel.C @@ -184,11 +184,7 @@ int main(int argc, char *argv[]) const DynamicList