Go to the documentation of this file.
51 #ifndef vtk_m_worklet_CosmoTools_h
52 #define vtk_m_worklet_CosmoTools_h
58 #include <vtkm/worklet/cosmotools/CosmoTools.h>
59 #include <vtkm/worklet/cosmotools/CosmoToolsCenterFinder.h>
60 #include <vtkm/worklet/cosmotools/CosmoToolsHaloFinder.h>
71 template <
typename FieldType,
typename StorageType>
76 const FieldType particleMass,
78 const FieldType linkingLen,
84 cosmotools::CosmoTools<FieldType, StorageType> cosmo(
85 nParticles, particleMass, minHaloSize, linkingLen, xLocation, yLocation, zLocation);
88 cosmo.HaloFinder(resultHaloId, resultMBP, resultPot);
92 template <
typename FieldType,
typename StorageType>
97 const FieldType particleMass,
101 cosmotools::CosmoTools<FieldType, StorageType> cosmo(
102 nParticles, particleMass, xLocation, yLocation, zLocation);
105 FieldType nxnPotential;
106 vtkm::Id nxnMBP = cosmo.MBPCenterFinderNxN(&nxnPotential);
108 nxnResult.
first = nxnMBP;
109 nxnResult.
second = nxnPotential;
113 template <
typename FieldType,
typename StorageType>
118 const FieldType particleMass,
122 cosmotools::CosmoTools<FieldType, StorageType> cosmo(
123 nParticles, particleMass, xLocation, yLocation, zLocation);
126 FieldType mxnPotential;
127 vtkm::Id mxnMBP = cosmo.MBPCenterFinderMxN(&mxnPotential);
129 mxnResult.
first = mxnMBP;
130 mxnResult.
second = mxnPotential;
136 #endif // vtk_m_worklet_CosmoTools_h
Manages an array-worth of data.
Definition: ArrayHandle.h:300
Groups connected points that have the same field value.
Definition: Atomic.h:19
FirstType first
The pair's first object.
Definition: Pair.h:50
vtkm::Int64 Id
Base type to use to index arrays.
Definition: Types.h:227
A vtkm::Pair is essentially the same as an STL pair object except that the methods (constructors and ...
Definition: Pair.h:29
SecondType second
The pair's second object.
Definition: Pair.h:55