mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
reserve doubles storage (like DynamicList)
This commit is contained in:
@ -670,7 +670,16 @@ inline void Foam::PackedList<nBits>::reserve
|
|||||||
// need more capacity?
|
// need more capacity?
|
||||||
if (len > StorageList::size())
|
if (len > StorageList::size())
|
||||||
{
|
{
|
||||||
StorageList::setSize(len, 0u);
|
// Like DynamicList with SizeInc=0, SizeMult=2, SizeDiv=1
|
||||||
|
StorageList::setSize
|
||||||
|
(
|
||||||
|
max
|
||||||
|
(
|
||||||
|
len,
|
||||||
|
StorageList::size()*2
|
||||||
|
),
|
||||||
|
0u
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user