Set default size for Dynamic List to avoid re-allocation of memory.
This commit is contained in:
parent
925f406f2f
commit
958b3603cd
1 changed files with 4 additions and 4 deletions
|
@ -99,12 +99,12 @@ void GGIInterpolation<MasterPatch, SlavePatch>::calcAddressing() const
|
||||||
// Create the dynamic lists to hold the addressing
|
// Create the dynamic lists to hold the addressing
|
||||||
|
|
||||||
// The final master/slave list, after filtering out the "false" neighbours
|
// The final master/slave list, after filtering out the "false" neighbours
|
||||||
List<DynamicList<label> > masterNeighbors(masterPatch_.size());
|
List<DynamicList<label, 8> > masterNeighbors(masterPatch_.size());
|
||||||
List<DynamicList<label> > slaveNeighbors(slavePatch_.size());
|
List<DynamicList<label, 8> > slaveNeighbors(slavePatch_.size());
|
||||||
|
|
||||||
// The weights
|
// The weights
|
||||||
List<DynamicList<scalar> > masterNeighborsWeights(masterPatch_.size());
|
List<DynamicList<scalar, 8> > masterNeighborsWeights(masterPatch_.size());
|
||||||
List<DynamicList<scalar> > slaveNeighborsWeights(slavePatch_.size());
|
List<DynamicList<scalar, 8> > slaveNeighborsWeights(slavePatch_.size());
|
||||||
|
|
||||||
// First, find a rough estimate of each slave and master facet
|
// First, find a rough estimate of each slave and master facet
|
||||||
// neighborhood by filtering out all the faces located outside of
|
// neighborhood by filtering out all the faces located outside of
|
||||||
|
|
Reference in a new issue