Commit ec1e1a3a authored by Robert Maynard's avatar Robert Maynard
Browse files

Fix warnings about unreachable break statement in CellDerivative.

parent 265b778a
......@@ -621,18 +621,20 @@ CellDerivative(const FieldVecType &pointFieldValues,
vtkm::CellShapeTagGeneric shape,
const vtkm::exec::FunctorBase &worklet)
{
vtkm::Vec<typename FieldVecType::ComponentType,3> result;
switch (shape.Id)
{
vtkmGenericCellShapeMacro(
return CellDerivative(pointFieldValues,
worldCoordinateValues,
parametricCoords,
CellShapeTag(),
worklet));
result = CellDerivative(pointFieldValues,
worldCoordinateValues,
parametricCoords,
CellShapeTag(),
worklet));
default:
worklet.RaiseError("Unknown cell shape sent to derivative.");
return vtkm::Vec<typename FieldVecType::ComponentType,3>();
}
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