Commit 7a66328e authored by Steven Walton's avatar Steven Walton

Shear is verified with Sam and the VTKm tests/Visit

parent db8cc7d6
......@@ -64,7 +64,7 @@ VTKM_EXEC OutType CellShearMetric(const vtkm::IdComponent& numPts,
UNUSED(numPts);
UNUSED(pts);
UNUSED(shape);
return OutType(0.0);
return OutType(-1.);
}
// ========================= 2D cells ==================================
......@@ -78,7 +78,7 @@ VTKM_EXEC OutType CellShearMetric(const vtkm::IdComponent& numPts,
if (numPts != 4)
{
worklet.RaiseError("Diagonal ratio metric(quad) requires 4 points.");
return OutType(0.0);
return OutType(-1.);
}
using Scalar = OutType;
using CollectionOfPoints = PointCoordVecType;
......@@ -115,7 +115,7 @@ VTKM_EXEC OutType CellShearMetric(const vtkm::IdComponent& numPts,
if (numPts != 8)
{
worklet.RaiseError("Diagonal ratio metric(hex) requires 8 points.");
return OutType(0.0);
return OutType(-1.);
}
using Scalar = OutType;
using CollectionOfPoints = PointCoordVecType;
......
Markdown is supported
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