2016-12-16 22:04:58 +00:00
|
|
|
//============================================================================
|
|
|
|
// Copyright (c) Kitware, Inc.
|
|
|
|
// All rights reserved.
|
|
|
|
// See LICENSE.txt for details.
|
2019-04-15 23:24:21 +00:00
|
|
|
//
|
2016-12-16 22:04:58 +00:00
|
|
|
// 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.
|
|
|
|
//============================================================================
|
2019-07-01 18:03:40 +00:00
|
|
|
#ifndef vtk_m_cont_CellSetStructured_hxx
|
|
|
|
#define vtk_m_cont_CellSetStructured_hxx
|
2016-12-16 22:04:58 +00:00
|
|
|
|
2017-05-18 14:29:41 +00:00
|
|
|
namespace vtkm
|
|
|
|
{
|
|
|
|
namespace cont
|
2016-12-16 22:04:58 +00:00
|
|
|
{
|
|
|
|
|
2018-12-07 20:54:20 +00:00
|
|
|
template <vtkm::IdComponent DIMENSION>
|
2017-05-18 14:29:41 +00:00
|
|
|
template <typename TopologyElement>
|
2016-12-16 22:04:58 +00:00
|
|
|
typename CellSetStructured<DIMENSION>::SchedulingRangeType
|
2017-05-18 14:29:41 +00:00
|
|
|
CellSetStructured<DIMENSION>::GetSchedulingRange(TopologyElement) const
|
2016-12-16 22:04:58 +00:00
|
|
|
{
|
|
|
|
VTKM_IS_TOPOLOGY_ELEMENT_TAG(TopologyElement);
|
|
|
|
return this->Structure.GetSchedulingRange(TopologyElement());
|
|
|
|
}
|
|
|
|
|
2017-05-18 14:29:41 +00:00
|
|
|
template <vtkm::IdComponent DIMENSION>
|
2019-07-30 16:53:51 +00:00
|
|
|
template <typename DeviceAdapter, typename VisitTopology, typename IncidentTopology>
|
2020-08-17 14:18:24 +00:00
|
|
|
typename CellSetStructured<DIMENSION>::
|
|
|
|
template ExecutionTypes<DeviceAdapter, VisitTopology, IncidentTopology>::ExecObjectType
|
|
|
|
CellSetStructured<DIMENSION>::PrepareForInput(DeviceAdapter,
|
|
|
|
VisitTopology,
|
|
|
|
IncidentTopology,
|
|
|
|
vtkm::cont::Token&) const
|
2016-12-16 22:04:58 +00:00
|
|
|
{
|
2017-08-16 15:34:21 +00:00
|
|
|
using ConnectivityType =
|
2019-07-30 16:53:51 +00:00
|
|
|
typename ExecutionTypes<DeviceAdapter, VisitTopology, IncidentTopology>::ExecObjectType;
|
2016-12-16 22:04:58 +00:00
|
|
|
return ConnectivityType(this->Structure);
|
|
|
|
}
|
|
|
|
|
2017-05-18 14:29:41 +00:00
|
|
|
template <vtkm::IdComponent DIMENSION>
|
|
|
|
void CellSetStructured<DIMENSION>::PrintSummary(std::ostream& out) const
|
2016-12-16 22:04:58 +00:00
|
|
|
{
|
2019-08-13 21:28:37 +00:00
|
|
|
out << " StructuredCellSet: " << std::endl;
|
2016-12-16 22:04:58 +00:00
|
|
|
this->Structure.PrintSummary(out);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-07-01 18:03:40 +00:00
|
|
|
#endif
|