Commit d47133ae authored by mattijs's avatar mattijs
Browse files

ENH: polyMeshTetDecmoposition: move List allocation outside loop

parent b89f6082
...@@ -55,6 +55,8 @@ Foam::label Foam::polyMeshTetDecomposition::findSharedBasePoint ...@@ -55,6 +55,8 @@ Foam::label Foam::polyMeshTetDecomposition::findSharedBasePoint
const point& oCc = pC[oCI]; const point& oCc = pC[oCI];
List<scalar> tetQualities(2, 0.0);
forAll(f, faceBasePtI) forAll(f, faceBasePtI)
{ {
scalar thisBaseMinTetQuality = VGREAT; scalar thisBaseMinTetQuality = VGREAT;
...@@ -66,8 +68,6 @@ Foam::label Foam::polyMeshTetDecomposition::findSharedBasePoint ...@@ -66,8 +68,6 @@ Foam::label Foam::polyMeshTetDecomposition::findSharedBasePoint
label facePtI = (tetPtI + faceBasePtI) % f.size(); label facePtI = (tetPtI + faceBasePtI) % f.size();
label otherFacePtI = f.fcIndex(facePtI); label otherFacePtI = f.fcIndex(facePtI);
List<scalar> tetQualities(2, 0.0);
{ {
// owner cell tet // owner cell tet
label ptAI = f[facePtI]; label ptAI = f[facePtI];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment