mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-19 18:45:43 +00:00
Merge topic 'more_moments_refactoring'
59bafd7a2 Update moments filter to reflect further changes to CreateResult. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1778
This commit is contained in:
commit
919bd3957e
@ -12,7 +12,6 @@
|
|||||||
#define vtk_m_filter_ComputeMoments_hxx
|
#define vtk_m_filter_ComputeMoments_hxx
|
||||||
|
|
||||||
#include <vtkm/cont/ArrayHandle.h>
|
#include <vtkm/cont/ArrayHandle.h>
|
||||||
#include <vtkm/filter/CreateResult.h>
|
|
||||||
#include <vtkm/worklet/moments/ComputeMoments.h>
|
#include <vtkm/worklet/moments/ComputeMoments.h>
|
||||||
|
|
||||||
namespace vtkm
|
namespace vtkm
|
||||||
@ -37,7 +36,8 @@ inline VTKM_CONT vtkm::cont::DataSet ComputeMoments::DoExecute(
|
|||||||
throw vtkm::cont::ErrorBadValue("Active field for ComputeMoments must be a point field.");
|
throw vtkm::cont::ErrorBadValue("Active field for ComputeMoments must be a point field.");
|
||||||
}
|
}
|
||||||
|
|
||||||
vtkm::cont::DataSet output = vtkm::filter::CreateResult(input);
|
vtkm::cont::DataSet output;
|
||||||
|
output.CopyStructure(input);
|
||||||
|
|
||||||
auto worklet = vtkm::worklet::moments::ComputeMoments(this->Radius);
|
auto worklet = vtkm::worklet::moments::ComputeMoments(this->Radius);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user