Commit 0e0e2f2f authored by Philippe Pebay's avatar Philippe Pebay
Browse files

PERF: minor perf improvement.

parent ca537058
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
#include "verdict.h" #include "verdict.h"
vtkCxxRevisionMacro(vtkMeshQuality,"1.51"); vtkCxxRevisionMacro(vtkMeshQuality,"1.52");
vtkStandardNewMacro(vtkMeshQuality); vtkStandardNewMacro(vtkMeshQuality);
typedef double (*CellQualityType)( vtkCell* ); typedef double (*CellQualityType)( vtkCell* );
...@@ -660,7 +660,7 @@ int vtkMeshQuality::RequestData( ...@@ -660,7 +660,7 @@ int vtkMeshQuality::RequestData(
} }
Eqtri += q; Eqtri += q;
Eqtri2 += q * q; Eqtri2 += q * q;
ntri++; ++ ntri;
break; break;
case VTK_QUAD: case VTK_QUAD:
q = QuadQuality( cell ); q = QuadQuality( cell );
...@@ -678,7 +678,7 @@ int vtkMeshQuality::RequestData( ...@@ -678,7 +678,7 @@ int vtkMeshQuality::RequestData(
} }
Eqqua += q; Eqqua += q;
Eqqua2 += q * q; Eqqua2 += q * q;
nqua++; ++ nqua;
break; break;
case VTK_TETRA: case VTK_TETRA:
q = TetQuality( cell ); q = TetQuality( cell );
...@@ -696,7 +696,7 @@ int vtkMeshQuality::RequestData( ...@@ -696,7 +696,7 @@ int vtkMeshQuality::RequestData(
} }
Eqtet += q; Eqtet += q;
Eqtet2 += q * q; Eqtet2 += q * q;
ntet++; ++ ntet;
if ( this->Volume ) if ( this->Volume )
{ {
V = TetVolume( cell ); V = TetVolume( cell );
...@@ -722,7 +722,7 @@ int vtkMeshQuality::RequestData( ...@@ -722,7 +722,7 @@ int vtkMeshQuality::RequestData(
} }
Eqhex += q; Eqhex += q;
Eqhex2 += q * q; Eqhex2 += q * q;
nhex++; ++ nhex;
break; break;
default: default:
q = 0.; q = 0.;
......
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