Optimising use of Dynamic lists in GGI
This commit is contained in:
parent
5cb721159d
commit
3eecb33abe
1 changed files with 1 additions and 6 deletions
|
@ -270,11 +270,6 @@ void GGIInterpolation<MasterPatch, SlavePatch>::calcAddressing() const
|
||||||
<< "This is strange..." << endl;
|
<< "This is strange..." << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The master face neighbours polygons projected in the plane UV
|
|
||||||
// We will only keep the ones with some area overlap
|
|
||||||
DynamicList<List<point2D> > masterNeighFace2DPolygonInUV;
|
|
||||||
DynamicList<scalarField> masterNeighFace2DPolygonInUVErrorProjection;
|
|
||||||
|
|
||||||
// Next, project the candidate master neighbours faces points
|
// Next, project the candidate master neighbours faces points
|
||||||
// onto the same plane using the new orthonormal basis
|
// onto the same plane using the new orthonormal basis
|
||||||
const labelList& curCMN = candidateMasterNeighbors[faceMi];
|
const labelList& curCMN = candidateMasterNeighbors[faceMi];
|
||||||
|
@ -614,7 +609,7 @@ GGIInterpolation<MasterPatch, SlavePatch>::findNonOverlappingFaces
|
||||||
tmp<labelField> tpatchFaceNonOverlapAddr(new labelField());
|
tmp<labelField> tpatchFaceNonOverlapAddr(new labelField());
|
||||||
labelField& patchFaceNonOverlapAddr = tpatchFaceNonOverlapAddr();
|
labelField& patchFaceNonOverlapAddr = tpatchFaceNonOverlapAddr();
|
||||||
|
|
||||||
DynamicList<label> patchFaceNonOverlap(patchWeights.size());
|
DynamicList<label, 64> patchFaceNonOverlap(patchWeights.size());
|
||||||
|
|
||||||
// Scan the list of patch weights, looking for empty lists
|
// Scan the list of patch weights, looking for empty lists
|
||||||
forAll (patchWeights, paWi)
|
forAll (patchWeights, paWi)
|
||||||
|
|
Reference in a new issue