don't need shrink before List::transfer(DynamicList&) anymore

This commit is contained in:
Mark Olesen
2008-12-12 14:20:56 +01:00
parent 8a5931f15a
commit c65a40d57d
39 changed files with 89 additions and 156 deletions

View File

@ -289,9 +289,7 @@ int main(int argc, char *argv[])
<< patchNames[patchI] << "\t\t"
<< allPatchFaces[patchI].size() << endl;
allPatchFaces[patchI].shrink();
patchFaces[patchI].transfer(allPatchFaces[patchI]);
allPatchFaces[patchI].clear();
}
Info<< endl;

View File

@ -461,7 +461,7 @@ int main(int argc, char *argv[])
}
}
// Trim
boundaryFaces.setSize(faceI);
boundaryPatch.setSize(faceI);
@ -515,7 +515,7 @@ int main(int argc, char *argv[])
Info<< " " << patchNames[patchI] << " : "
<< allPatchFaces[patchI].size() << endl;
patchFaces[patchI].transfer(allPatchFaces[patchI].shrink());
patchFaces[patchI].transfer(allPatchFaces[patchI]);
}
Info<< endl;
@ -548,7 +548,6 @@ int main(int argc, char *argv[])
meshPtr().write();
Info<< "End\n" << endl;
return 0;

View File

@ -74,10 +74,7 @@ void Foam::readerDatabase::getPolyHedra()
}
}
polys.shrink();
Info<< "Found " << polys.size() << " polyhedral cells " << endl;
polys_.transfer(polys);
}