Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
ef3e39dd
Commit
ef3e39dd
authored
Dec 07, 2009
by
mattijs
Browse files
reserve doubles storage (like DynamicList)
parent
a8c400de
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/containers/Lists/PackedList/PackedListI.H
View file @
ef3e39dd
...
...
@@ -670,7 +670,16 @@ inline void Foam::PackedList<nBits>::reserve
// need more capacity?
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
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment