XGC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
get_tr_save.cpp File Reference
#include "timer_macro.hpp"
#include "globals.hpp"
#include "magnetic_field.hpp"
#include "grid.hpp"
#include "particles.hpp"
#include "plasma.hpp"
Include dependency graph for get_tr_save.cpp:

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 > &current_triangle, const Kokkos::View< double **, Kokkos::LayoutRight, Device > &current_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)
 

Function Documentation

void all_species_get_saved_tr_p_psi ( const Grid< DeviceType > &  grid,
const MagneticField< DeviceType > &  magnetic_field,
Plasma plasma 
)

Here is the call graph for this function:

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 > &  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

Parameters
[in]partParticle AoSoA
[in]i_itemParticle/vector index

Here is the call graph for this function:

Here is the caller graph for this function:

double* get_p_save_ptr ( int  isp)

Here is the caller graph for this function:

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

Parameters
[in]gridis used to get weights for the field gather
[in]magnetic_fieldis needed for psi and B calculation
[in]speciesused for species-specific parameters
Returns
void

Here is the call graph for this function:

Here is the caller graph for this function:

int* get_tr_save_ptr ( int  isp)

Here is the caller graph for this function: