bug fix for max_capacity of pStruct
This commit is contained in:
parent
55ba36cc80
commit
8f657458cc
|
@ -29,8 +29,7 @@ pFlow::empty::empty(
|
|||
positionParticles(dict),
|
||||
position_
|
||||
(
|
||||
maxNumberOfParticles_, RESERVE()
|
||||
maxNumberOfParticles_, 0, RESERVE()
|
||||
)
|
||||
{
|
||||
position_.clear();
|
||||
}
|
|
@ -153,7 +153,10 @@ public:
|
|||
}
|
||||
else
|
||||
{
|
||||
return position();
|
||||
realx3Vector vec(position().capacity(), RESERVE());
|
||||
vec.assign( position().begin(), position().end());
|
||||
|
||||
return std::move(vec);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue