XGCa
|
#include "globals.hpp"
#include "magnetic_field.hpp"
#include "grid.hpp"
#include "particles.hpp"
#include "species.hpp"
Functions | |
template<class Device > | |
KOKKOS_INLINE_FUNCTION int | pid_gvid (const DomainDecomposition< Device > &pol_decomp, int gvid, int nnodes, int nproc) |
template<class Device > | |
KOKKOS_INLINE_FUNCTION void | get_current_pid_c (const Species< Device > &species, const Grid< Device > &grid, const DomainDecomposition< Device > &pol_decomp, const MagneticField< Device > &magnetic_field, const Kokkos::View< int *, Kokkos::LayoutRight, Device > ¤t_pid, int i_item) |
KOKKOS_INLINE_FUNCTION void get_current_pid_c | ( | const Species< Device > & | species, |
const Grid< Device > & | grid, | ||
const DomainDecomposition< Device > & | pol_decomp, | ||
const MagneticField< Device > & | magnetic_field, | ||
const Kokkos::View< int *, Kokkos::LayoutRight, Device > & | current_pid, | ||
int | i_item | ||
) |
Loop over particles and determine what processor they should be handed off to after the push
[in] | part | Particle AoSoA |
[in] | i_item | Particle/vector index |
KOKKOS_INLINE_FUNCTION int pid_gvid | ( | const DomainDecomposition< Device > & | pol_decomp, |
int | gvid, | ||
int | nnodes, | ||
int | nproc | ||
) |
Determine which processor the particle belongs to based on which node it belongs to.
[in] | gvid | The particle node. (Misnomer?) |
[in] | nnodes | Number of nodes total |
[in] | nproc | Number of processors total |