mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
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:
parent
0df2344517
commit
42cb620289
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user