diff --git a/DEMSystems/domainDistribute/domainDistribute.cpp b/DEMSystems/domainDistribute/domainDistribute.cpp index b888f2d6..b6985243 100644 --- a/DEMSystems/domainDistribute/domainDistribute.cpp +++ b/DEMSystems/domainDistribute/domainDistribute.cpp @@ -52,11 +52,13 @@ bool pFlow::domainDistribute::locateParticles( range activeRange = mask.activeRange(); + for(int32 di=0; di::type push_back(const T& val) { - if(size_ == capacity_) changeSize(capacity_); + if(size_ == capacity_) + { + changeSize(evalCapacity(capacity_), true); + } data()[size_++] = val; subViewUpdated_ = false; }