Skip to content
Snippets Groups Projects
Commit d47133ae authored by mattijs's avatar mattijs
Browse files

ENH: polyMeshTetDecmoposition: move List allocation outside loop

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