XGCa
|
#include "timer_macro.hpp"
#include "globals.hpp"
#include "magnetic_field.hpp"
#include "grid.hpp"
#include "particles.hpp"
#include "plasma.hpp"
Functions | |
template<class Device > | |
KOKKOS_INLINE_FUNCTION void | compute_p_and_itr_c (const Species< Device > &species, const Grid< Device > &grid, const MagneticField< Device > &magnetic_field, const Kokkos::View< int *, Kokkos::LayoutRight, Device > ¤t_triangle, const Kokkos::View< double **, Kokkos::LayoutRight, Device > ¤t_pweight, int i_item) |
int * | get_tr_save_ptr (int isp) |
double * | get_p_save_ptr (int isp) |
void | get_saved_tr_p_psi (const Grid< DeviceType > &grid, const MagneticField< DeviceType > &magnetic_field, Species< DeviceType > &species) |
void | all_species_get_saved_tr_p_psi (const Grid< DeviceType > &grid, const MagneticField< DeviceType > &magnetic_field, Plasma &plasma) |
void all_species_get_saved_tr_p_psi | ( | const Grid< DeviceType > & | grid, |
const MagneticField< DeviceType > & | magnetic_field, | ||
Plasma & | plasma | ||
) |
KOKKOS_INLINE_FUNCTION void compute_p_and_itr_c | ( | const Species< Device > & | species, |
const Grid< Device > & | grid, | ||
const MagneticField< Device > & | magnetic_field, | ||
const Kokkos::View< int *, Kokkos::LayoutRight, Device > & | current_triangle, | ||
const Kokkos::View< double **, Kokkos::LayoutRight, Device > & | current_pweight, | ||
int | i_item | ||
) |
Loop over particles and save the triangle as well as the weights of each of the triangle vertices
[in] | part | Particle AoSoA |
[in] | i_item | Particle/vector index |
double* get_p_save_ptr | ( | int | isp | ) |
void get_saved_tr_p_psi | ( | const Grid< DeviceType > & | grid, |
const MagneticField< DeviceType > & | magnetic_field, | ||
Species< DeviceType > & | species | ||
) |
Gets triangle position and triangle weights and writes them to fortran arrays tr_save and p_save
[in] | grid | is used to get weights for the field gather |
[in] | magnetic_field | is needed for psi and B calculation |
[in] | species | used for species-specific parameters |
int* get_tr_save_ptr | ( | int | isp | ) |