Go to the documentation of this file.
59 #ifndef viskores_worklet_CosmoTools_h
60 #define viskores_worklet_CosmoTools_h
66 #include <viskores/worklet/cosmotools/CosmoTools.h>
67 #include <viskores/worklet/cosmotools/CosmoToolsCenterFinder.h>
68 #include <viskores/worklet/cosmotools/CosmoToolsHaloFinder.h>
79 template <
typename FieldType,
typename StorageType>
84 const FieldType particleMass,
86 const FieldType linkingLen,
92 cosmotools::CosmoTools<FieldType, StorageType> cosmo(
93 nParticles, particleMass, minHaloSize, linkingLen, xLocation, yLocation, zLocation);
96 cosmo.HaloFinder(resultHaloId, resultMBP, resultPot);
100 template <
typename FieldType,
typename StorageType>
105 const FieldType particleMass,
109 cosmotools::CosmoTools<FieldType, StorageType> cosmo(
110 nParticles, particleMass, xLocation, yLocation, zLocation);
113 FieldType nxnPotential;
114 viskores::Id nxnMBP = cosmo.MBPCenterFinderNxN(&nxnPotential);
116 nxnResult.
first = nxnMBP;
117 nxnResult.
second = nxnPotential;
121 template <
typename FieldType,
typename StorageType>
126 const FieldType particleMass,
130 cosmotools::CosmoTools<FieldType, StorageType> cosmo(
131 nParticles, particleMass, xLocation, yLocation, zLocation);
134 FieldType mxnPotential;
135 viskores::Id mxnMBP = cosmo.MBPCenterFinderMxN(&mxnPotential);
137 mxnResult.
first = mxnMBP;
138 mxnResult.
second = mxnPotential;
144 #endif // viskores_worklet_CosmoTools_h
Manages an array-worth of data.
Definition: ArrayHandle.h:313
viskores::Int64 Id
Base type to use to index arrays.
Definition: Types.h:235
Groups connected points that have the same field value.
Definition: Atomic.h:27
FirstType first
The pair's first object.
Definition: Pair.h:58
A viskores::Pair is essentially the same as an STL pair object except that the methods (constructors ...
Definition: Pair.h:37
SecondType second
The pair's second object.
Definition: Pair.h:63