mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-08 13:23:51 +00:00
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.
This commit is contained in:
parent
a20ec03d0b
commit
f29a4712b0
@ -20,6 +20,19 @@ namespace filter
|
||||
class ComputeMoments : public vtkm::filter::FilterCell<ComputeMoments>
|
||||
{
|
||||
public:
|
||||
using SupportedTypes = vtkm::List<vtkm::Float32,
|
||||
vtkm::Float64,
|
||||
vtkm::Vec<vtkm::Float32, 2>,
|
||||
vtkm::Vec<vtkm::Float64, 2>,
|
||||
vtkm::Vec<vtkm::Float32, 3>,
|
||||
vtkm::Vec<vtkm::Float64, 3>,
|
||||
vtkm::Vec<vtkm::Float32, 4>,
|
||||
vtkm::Vec<vtkm::Float64, 4>,
|
||||
vtkm::Vec<vtkm::Float32, 6>,
|
||||
vtkm::Vec<vtkm::Float64, 6>,
|
||||
vtkm::Vec<vtkm::Float32, 9>,
|
||||
vtkm::Vec<vtkm::Float64, 9>>;
|
||||
|
||||
VTKM_CONT ComputeMoments();
|
||||
|
||||
template <typename T, typename StorageType, typename DerivedPolicy>
|
||||
|
Loading…
Reference in New Issue
Block a user