From f29a4712b003c7d9676ad309811213b96e9c09b2 Mon Sep 17 00:00:00 2001 From: Kenneth Moreland Date: Mon, 18 May 2020 18:39:22 -0600 Subject: [PATCH] Correct field types for ComputeMoments filter This filter is designed to work on vectors of many sizes. It was written when selecting field types was the responsibility of the policy. It is now the responsibility of the filter to specify possible field types. This change is required to compile the MomentInvariants module for VTK without policies. --- vtkm/filter/ComputeMoments.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/vtkm/filter/ComputeMoments.h b/vtkm/filter/ComputeMoments.h index 40cf91177..1b896a007 100644 --- a/vtkm/filter/ComputeMoments.h +++ b/vtkm/filter/ComputeMoments.h @@ -20,6 +20,19 @@ namespace filter class ComputeMoments : public vtkm::filter::FilterCell { public: + using SupportedTypes = vtkm::List, + vtkm::Vec, + vtkm::Vec, + vtkm::Vec, + vtkm::Vec, + vtkm::Vec, + vtkm::Vec, + vtkm::Vec, + vtkm::Vec, + vtkm::Vec>; + VTKM_CONT ComputeMoments(); template