Skip to content
Snippets Groups Projects
Commit 6bf984f9 authored by Spiros Tsalikis's avatar Spiros Tsalikis Committed by Lucas Givord
Browse files

vtkHigherOrderTetra: Add size check

(cherry picked from commit 1ab742b0)
parent edbb983b
No related branches found
No related tags found
No related merge requests found
......@@ -780,6 +780,14 @@ void vtkHigherOrderTetra::SetParametricCoords()
double order_d = static_cast<vtkIdType>(this->GetOrder());
this->PointParametricCoordinates->SetNumberOfPoints(nPoints);
#ifdef ENABLE_CACHING
if (static_cast<vtkIdType>(this->BarycentricIndexMap.size()) !=
4 * this->GetPointIds()->GetNumberOfIds())
{
vtkWarningMacro(<< this->GetClassName() << " has not been initialized");
return;
}
#endif
vtkIdType bindex[4];
for (vtkIdType p = 0; p < nPoints; p++)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment