Commit 0c36aef5 authored by Robert Maynard's avatar Robert Maynard
Browse files

Fix warnings about unreachable break statement in CellInterpolate.

parent ec1e1a3a
......@@ -142,17 +142,19 @@ CellInterpolate(const FieldVecType &pointFieldValues,
vtkm::CellShapeTagGeneric shape,
const vtkm::exec::FunctorBase &worklet)
{
typename FieldVecType::ComponentType result;
switch (shape.Id)
{
vtkmGenericCellShapeMacro(
return CellInterpolate(pointFieldValues,
parametricCoords,
CellShapeTag(),
worklet));
result = CellInterpolate(pointFieldValues,
parametricCoords,
CellShapeTag(),
worklet));
default:
worklet.RaiseError("Unknown cell shape sent to interpolate.");
return typename FieldVecType::ComponentType();
}
return result;
}
//-----------------------------------------------------------------------------
......
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