Clip should use VTKM_DEFAULT_TYPE_LIST in CastAndCall

This was causing an issue in VTK as the VTK specific typelist was not
being used. This resulted in a field's type being changed from `UInt8` to
`Float32` and caused a test to fail.
This commit is contained in:
Sujin Philip 2022-10-13 12:14:45 -04:00
parent 0df2344517
commit 42cb620289
2 changed files with 2 additions and 2 deletions

@ -52,7 +52,7 @@ bool DoMapField(vtkm::cont::DataSet& result,
};
field.GetData()
.CastAndCallForTypesWithFloatFallback<vtkm::TypeListField, VTKM_DEFAULT_STORAGE_LIST>(
.CastAndCallForTypesWithFloatFallback<VTKM_DEFAULT_TYPE_LIST, VTKM_DEFAULT_STORAGE_LIST>(
resolve);
return true;
}

@ -52,7 +52,7 @@ bool DoMapField(vtkm::cont::DataSet& result,
};
field.GetData()
.CastAndCallForTypesWithFloatFallback<vtkm::TypeListField, VTKM_DEFAULT_STORAGE_LIST>(
.CastAndCallForTypesWithFloatFallback<VTKM_DEFAULT_TYPE_LIST, VTKM_DEFAULT_STORAGE_LIST>(
resolve);
return true;
}