Commit 09e508cd authored by Sujin Philip's avatar Sujin Philip Committed by Kitware Robot
Browse files

Merge topic 'probe-point-fields'

abedf61e

 Fix probe filter field mapping
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Kenneth Moreland's avatarKenneth Moreland <morelandkd@ornl.gov>
Merge-request: !2555
parents b9f55e56 abedf61e
Pipeline #242311 failed with stages
in 25 minutes and 6 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());
result.AddField(outField);
return true;
}
return false;
}
else if (field.IsFieldGlobal())
{
......
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