Commit f4f5dcb7 authored by Kenneth Moreland's avatar Kenneth Moreland

Fix warnings about using template outside of a template

Previously, UnitTestProbe used a struct templated on the device adapter,
and that necessitated the use of the template keyword when using an
ambiguous type. These recent changes remove that template argument and
thus can cause a warning about using the template keyword in a non-
ambiguous type.
parent bcbad610
......@@ -145,10 +145,8 @@ private:
vtkm::worklet::Probe probe;
probe.Run(input.GetCellSet(), input.GetCoordinateSystem(), geometry.GetCoordinateSystem());
auto pf = probe.ProcessPointField(
input.GetField("pointdata").GetData().template Cast<FieldArrayType>());
auto cf =
probe.ProcessCellField(input.GetField("celldata").GetData().template Cast<FieldArrayType>());
auto pf = probe.ProcessPointField(input.GetField("pointdata").GetData().Cast<FieldArrayType>());
auto cf = probe.ProcessCellField(input.GetField("celldata").GetData().Cast<FieldArrayType>());
auto hp = probe.GetHiddenPointsField();
auto hc = probe.GetHiddenCellsField(geometry.GetCellSet());
......@@ -168,10 +166,8 @@ private:
vtkm::worklet::Probe probe;
probe.Run(input.GetCellSet(), input.GetCoordinateSystem(), geometry.GetCoordinateSystem());
auto pf = probe.ProcessPointField(
input.GetField("pointdata").GetData().template Cast<FieldArrayType>());
auto cf =
probe.ProcessCellField(input.GetField("celldata").GetData().template Cast<FieldArrayType>());
auto pf = probe.ProcessPointField(input.GetField("pointdata").GetData().Cast<FieldArrayType>());
auto cf = probe.ProcessCellField(input.GetField("celldata").GetData().Cast<FieldArrayType>());
auto hp = probe.GetHiddenPointsField();
auto hc = probe.GetHiddenCellsField(geometry.GetCellSet());
......@@ -192,10 +188,8 @@ private:
vtkm::worklet::Probe probe;
probe.Run(input.GetCellSet(), input.GetCoordinateSystem(), geometry.GetCoordinateSystem());
auto pf = probe.ProcessPointField(
input.GetField("pointdata").GetData().template Cast<FieldArrayType>());
auto cf =
probe.ProcessCellField(input.GetField("celldata").GetData().template Cast<FieldArrayType>());
auto pf = probe.ProcessPointField(input.GetField("pointdata").GetData().Cast<FieldArrayType>());
auto cf = probe.ProcessCellField(input.GetField("celldata").GetData().Cast<FieldArrayType>());
auto hp = probe.GetHiddenPointsField();
auto hc = probe.GetHiddenCellsField(geometry.GetCellSet());
......
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