BUG: polyMeshAdder: setSize of a DynamicList should be setCapacity

This commit is contained in:
laurence
2013-07-05 10:19:59 +01:00
parent e2688c4e88
commit e167c4f86d

View File

@ -69,7 +69,7 @@ void Foam::polyMeshAdder::append
DynamicList<label>& dynLst DynamicList<label>& dynLst
) )
{ {
dynLst.setSize(dynLst.size() + lst.size()); dynLst.setCapacity(dynLst.size() + lst.size());
forAll(lst, i) forAll(lst, i)
{ {