Commit bef70820 authored by Robert Maynard's avatar Robert Maynard

Update new worklets to work with ArrayHandleVariant

parent 1f2abbc9
......@@ -64,7 +64,7 @@ void Test1D(int rate)
vtkm::worklet::ZFP1DCompressor compressor;
vtkm::worklet::ZFP1DDecompressor decompressor;
if (dynField.IsSameType(Handle64()))
if (vtkm::cont::IsType<Handle64>(dynField))
{
vtkm::cont::ArrayHandle<Scalar> handle;
const vtkm::Id size = dynField.Cast<Handle64>().GetNumberOfValues();
......@@ -101,7 +101,7 @@ void Test2D(int rate)
vtkm::worklet::ZFP2DCompressor compressor;
vtkm::worklet::ZFP2DDecompressor decompressor;
if (dynField.IsSameType(Handle64()))
if (vtkm::cont::IsType<Handle64>(dynField))
{
vtkm::cont::ArrayHandle<Scalar> handle;
const vtkm::Id size = dynField.Cast<Handle64>().GetNumberOfValues();
......@@ -141,7 +141,7 @@ void Test3D(int rate)
vtkm::worklet::ZFPCompressor compressor;
vtkm::worklet::ZFPDecompressor decompressor;
if (dynField.IsSameType(Handle64()))
if (vtkm::cont::IsType<Handle64>(dynField))
{
vtkm::cont::ArrayHandle<Scalar> handle;
const vtkm::Id size = dynField.Cast<Handle64>().GetNumberOfValues();
......
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