Go to the documentation of this file.
18 #ifndef viskores_exec_CellLocatorPartitioned_h
19 #define viskores_exec_CellLocatorPartitioned_h
56 for (
viskores::Id partitionIndex = 0; partitionIndex < this->Locators.GetNumberOfValues();
62 Locators.Get(partitionIndex).FindCell(point, cellIndex, parametricLocal);
63 if (status != viskores ::ErrorCode ::Success)
68 if (Ghosts.Get(partitionIndex).Get(cellIndex) == 0)
70 partitionId = partitionIndex;
72 parametric = parametricLocal;
91 #endif //viskores_exec_CellLocatorPartitioned_h
typename Superclass::ReadPortalType ReadPortalType
Definition: ArrayHandleStride.h:349
viskores::ListApply< ExecLocatorList, viskores::exec::CellLocatorMultiplexer > ExecObjType
Definition: CellLocatorGeneral.h:61
ErrorCode
Identifies whether an operation was successful or what type of error it had.
Definition: ErrorCode.h:36
Manages an array-worth of data.
Definition: ArrayHandle.h:313
typename StorageType::ReadPortalType ReadPortalType
The type of portal used when accessing data in a read-only mode.
Definition: ArrayHandle.h:325
Definition: exec/CellLocatorPartitioned.h:29
viskores::cont::ArrayHandle< viskores::cont::CellLocatorGeneral::ExecObjType >::ReadPortalType Locators
Definition: exec/CellLocatorPartitioned.h:33
viskores::cont::ArrayHandle< viskores::cont::ArrayHandleStride< viskores::UInt8 >::ReadPortalType >::ReadPortalType Ghosts
Definition: exec/CellLocatorPartitioned.h:35
viskores::Int64 Id
Base type to use to index arrays.
Definition: Types.h:235
#define VISKORES_CONT
Definition: ExportMacros.h:65
Groups connected points that have the same field value.
Definition: Atomic.h:27
@ CellNotFound
A cell matching some given criteria could not be found.
@ Success
A successful operation.
viskores::ErrorCode FindCell(const viskores::Vec3f &point, viskores::Id &partitionId, viskores::Id &cellId, viskores::Vec3f ¶metric) const
Definition: exec/CellLocatorPartitioned.h:50
#define VISKORES_EXEC
Definition: ExportMacros.h:59
CellLocatorPartitioned(const viskores::cont::ArrayHandle< viskores::cont::CellLocatorGeneral::ExecObjType >::ReadPortalType &locators, viskores::cont::ArrayHandle< viskores::cont::ArrayHandleStride< viskores::UInt8 >::ReadPortalType >::ReadPortalType ghosts)
Definition: exec/CellLocatorPartitioned.h:39
viskores::Vec< viskores::FloatDefault, 3 > Vec3f
Vec3f corresponds to a 3-dimensional vector of floating point values.
Definition: Types.h:1064