|
| void | initialize (FieldLayout< Dim > &fl, mesh_type &mesh, const Field &rho) |
| |
| template<typename Attrib > |
| bool | binaryRepartition (const Attrib &R, FieldLayout< Dim > &fl, const bool &isFirstRepartition) |
| |
| int | findCutAxis (NDIndex< Dim > &dom) |
| |
| void | perpendicularReduction (std::vector< Tf > &rankWeights, unsigned int cutAxis, NDIndex< Dim > &dom) |
| |
| int | findMedian (std::vector< Tf > &w) |
| |
| void | cutDomain (std::vector< NDIndex< Dim > > &domains, std::vector< int > &procs, int it, int cutAxis, int median) |
| |
| template<typename Attrib > |
| void | scatterR (const Attrib &r) |
| |
◆ binaryRepartition()
template<class
Field , class Tp >
template<typename Attrib >
Performs scatter operation of particle positions in field (weights) and repartitions FieldLayout's global domain
- Template Parameters
-
| Attrib | the particle attribute type (memory space must be accessible to field memory) |
- Parameters
-
| R | Weights to scatter |
| fl | FieldLayout |
| isFirstRepartition | boolean which tells whether to scatter or not |
◆ cutDomain()
template<class
Field , class Tp >
Splits the domain given by the iterator along the cut axis at the median, the corresponding index will be cut between median and median+1
- Parameters
-
| domains | Set of subdomains which will be cut |
| procs | Set of ranks count associated to each subdomain |
| it | Iterator |
| cutAxis | Index of cut axis |
| median | Median |
◆ findCutAxis()
template<class
Field , class Tp >
Find cutting axis as the longest axis of the field layout.
- Parameters
-
◆ findMedian()
template<class
Field , class Tp >
Find median of array
- Parameters
-
◆ initialize()
template<class
Field , class Tp >
Initialize member field with mesh and field layout
- Parameters
-
| fl | |
| mesh | Mesh |
| rho | Density field |
◆ perpendicularReduction()
template<class
Field , class Tp >
Performs reduction on local field in all dimension except that determined by cutAxis, stores result in res
- Parameters
-
| rankWeights | Array giving the result of reduction |
| cutAxis | Index of cut axis |
| dom | Domain to reduce |
◆ scatterR()
template<class
Field , class Tp >
template<typename Attrib >
Scattering of particle positions in field using a CIC method
- Template Parameters
-
| Attrib | the particle attribute type (memory space must be accessible to field memory) |
- Parameters
-
The documentation for this class was generated from the following files: