Commit abedf61e authored by Sujin Philip's avatar Sujin Philip
Browse files

Fix probe filter field mapping

All probed fields should become point fields in output
parent bf6d6ca5
Pipeline #241576 passed with stages
in 61 minutes and 51 seconds
......@@ -69,8 +69,17 @@ VTKM_CONT inline bool Probe::MapFieldOntoOutput(vtkm::cont::DataSet& result,
else if (field.IsFieldCell())
return vtkm::filter::MapFieldPermutation(
field, this->Worklet.GetCellIds(), result, this->InvalidValue);
vtkm::cont::Field outField;
if (vtkm::filter::MapFieldPermutation(
field, this->Worklet.GetCellIds(), outField, this->InvalidValue))
// output field should be associated with points
outField = vtkm::cont::Field(
field.GetName(), vtkm::cont::Field::Association::POINTS, outField.GetData());
return true;
return false;
else if (field.IsFieldGlobal())
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