mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-20 02:55:47 +00:00
76ce9c87f0
The old version of ExecutionObject (that only takes a device) is still supported, but you will get a deprecated warning if that is what is defined. Supporing this also included sending vtkm::cont::Token through the vtkm::cont::arg::Transport mechanism, which was a change that propogated through a lot of code.
51 lines
1.9 KiB
C++
51 lines
1.9 KiB
C++
//============================================================================
|
|
// Copyright (c) Kitware, Inc.
|
|
// All rights reserved.
|
|
// See LICENSE.txt for details.
|
|
//
|
|
// This software is distributed WITHOUT ANY WARRANTY; without even
|
|
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
// PURPOSE. See the above copyright notice for more information.
|
|
//============================================================================
|
|
#ifndef vtk_m_cont_CellSetStructured_hxx
|
|
#define vtk_m_cont_CellSetStructured_hxx
|
|
|
|
namespace vtkm
|
|
{
|
|
namespace cont
|
|
{
|
|
|
|
template <vtkm::IdComponent DIMENSION>
|
|
template <typename TopologyElement>
|
|
typename CellSetStructured<DIMENSION>::SchedulingRangeType
|
|
CellSetStructured<DIMENSION>::GetSchedulingRange(TopologyElement) const
|
|
{
|
|
VTKM_IS_TOPOLOGY_ELEMENT_TAG(TopologyElement);
|
|
return this->Structure.GetSchedulingRange(TopologyElement());
|
|
}
|
|
|
|
template <vtkm::IdComponent DIMENSION>
|
|
template <typename DeviceAdapter, typename VisitTopology, typename IncidentTopology>
|
|
typename CellSetStructured<DIMENSION>::template ExecutionTypes<DeviceAdapter,
|
|
VisitTopology,
|
|
IncidentTopology>::ExecObjectType
|
|
CellSetStructured<DIMENSION>::PrepareForInput(DeviceAdapter,
|
|
VisitTopology,
|
|
IncidentTopology,
|
|
vtkm::cont::Token&) const
|
|
{
|
|
using ConnectivityType =
|
|
typename ExecutionTypes<DeviceAdapter, VisitTopology, IncidentTopology>::ExecObjectType;
|
|
return ConnectivityType(this->Structure);
|
|
}
|
|
|
|
template <vtkm::IdComponent DIMENSION>
|
|
void CellSetStructured<DIMENSION>::PrintSummary(std::ostream& out) const
|
|
{
|
|
out << " StructuredCellSet: " << std::endl;
|
|
this->Structure.PrintSummary(out);
|
|
}
|
|
}
|
|
}
|
|
#endif
|