Optimising use of Dynamic lists in GGI

This commit is contained in:
Hrvoje Jasak 2015-09-07 13:29:35 +02:00
parent 5cb721159d
commit 3eecb33abe

View file

@ -270,11 +270,6 @@ void GGIInterpolation<MasterPatch, SlavePatch>::calcAddressing() const
<< "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
// onto the same plane using the new orthonormal basis
const labelList& curCMN = candidateMasterNeighbors[faceMi];
@ -614,7 +609,7 @@ GGIInterpolation<MasterPatch, SlavePatch>::findNonOverlappingFaces
tmp<labelField> tpatchFaceNonOverlapAddr(new labelField());
labelField& patchFaceNonOverlapAddr = tpatchFaceNonOverlapAddr();
DynamicList<label> patchFaceNonOverlap(patchWeights.size());
DynamicList<label, 64> patchFaceNonOverlap(patchWeights.size());
// Scan the list of patch weights, looking for empty lists
forAll (patchWeights, paWi)