XGCa
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
GridField< Device, VT, PIT, TorType::OnePlane, KinType::GyroKin, ScatterType::Replication > Struct Template Reference

#include <grid_field.hpp>

Public Types

using field_type = Field< VT, PIT >
 
using device_type = Device
 

Public Member Functions

 GridField ()
 
 GridField (std::string name, int nphi, int nrho, int nnode)
 
 GridField (std::string name, int nrho, int nnode)
 
field_typedata () const
 
int size () const
 
int nnode () const
 
int nrhop1 () const
 
int nphi () const
 
KOKKOS_INLINE_FUNCTION bool is_allocated () const
 
KOKKOS_INLINE_FUNCTION field_typeoperator() (int ithread, int inode, int irho) const
 
KOKKOS_INLINE_FUNCTION void scatter (int ithread, int node, const SimdPhiWeights< get_phi_wt_usage(PIT)> &phi_wts, const SimdGyroWeights< GyroKin > &rho_wts, int i_simd, double particle_weight) const
 
KOKKOS_INLINE_FUNCTION void scatter (const Grid< DeviceType > &grid, int ithread, const SimdGridWeights< Order::One, PIT_GLOBAL > &grid_wts, int i_simd, const SimdGyroWeights< GyroKin > &rho_wts, double particle_weight) const
 
void reset_to_zero ()
 

Public Attributes

Kokkos::View< field_type
***, Kokkos::LayoutRight,
Device > 
f
 

Static Public Attributes

static constexpr KinType KT = KinType::GyroKin
 

Member Typedef Documentation

template<class Device , VarType VT, PhiInterpType PIT>
using GridField< Device, VT, PIT, TorType::OnePlane, KinType::GyroKin, ScatterType::Replication >::device_type = Device
template<class Device , VarType VT, PhiInterpType PIT>
using GridField< Device, VT, PIT, TorType::OnePlane, KinType::GyroKin, ScatterType::Replication >::field_type = Field<VT,PIT>

Constructor & Destructor Documentation

template<class Device , VarType VT, PhiInterpType PIT>
GridField< Device, VT, PIT, TorType::OnePlane, KinType::GyroKin, ScatterType::Replication >::GridField ( )
inline
template<class Device , VarType VT, PhiInterpType PIT>
GridField< Device, VT, PIT, TorType::OnePlane, KinType::GyroKin, ScatterType::Replication >::GridField ( std::string  name,
int  nphi,
int  nrho,
int  nnode 
)
inline
template<class Device , VarType VT, PhiInterpType PIT>
GridField< Device, VT, PIT, TorType::OnePlane, KinType::GyroKin, ScatterType::Replication >::GridField ( std::string  name,
int  nrho,
int  nnode 
)
inline

Member Function Documentation

template<class Device , VarType VT, PhiInterpType PIT>
field_type* GridField< Device, VT, PIT, TorType::OnePlane, KinType::GyroKin, ScatterType::Replication >::data ( ) const
inline
template<class Device , VarType VT, PhiInterpType PIT>
KOKKOS_INLINE_FUNCTION bool GridField< Device, VT, PIT, TorType::OnePlane, KinType::GyroKin, ScatterType::Replication >::is_allocated ( ) const
inline
template<class Device , VarType VT, PhiInterpType PIT>
int GridField< Device, VT, PIT, TorType::OnePlane, KinType::GyroKin, ScatterType::Replication >::nnode ( ) const
inline
template<class Device , VarType VT, PhiInterpType PIT>
int GridField< Device, VT, PIT, TorType::OnePlane, KinType::GyroKin, ScatterType::Replication >::nphi ( ) const
inline
template<class Device , VarType VT, PhiInterpType PIT>
int GridField< Device, VT, PIT, TorType::OnePlane, KinType::GyroKin, ScatterType::Replication >::nrhop1 ( ) const
inline
template<class Device , VarType VT, PhiInterpType PIT>
KOKKOS_INLINE_FUNCTION field_type& GridField< Device, VT, PIT, TorType::OnePlane, KinType::GyroKin, ScatterType::Replication >::operator() ( int  ithread,
int  inode,
int  irho 
) const
inline
template<class Device , VarType VT, PhiInterpType PIT>
void GridField< Device, VT, PIT, TorType::OnePlane, KinType::GyroKin, ScatterType::Replication >::reset_to_zero ( )
inline
template<class Device , VarType VT, PhiInterpType PIT>
KOKKOS_INLINE_FUNCTION void GridField< Device, VT, PIT, TorType::OnePlane, KinType::GyroKin, ScatterType::Replication >::scatter ( int  ithread,
int  node,
const SimdPhiWeights< get_phi_wt_usage(PIT)> &  phi_wts,
const SimdGyroWeights< GyroKin > &  rho_wts,
int  i_simd,
double  particle_weight 
) const
inline

Here is the call graph for this function:

template<class Device , VarType VT, PhiInterpType PIT>
KOKKOS_INLINE_FUNCTION void GridField< Device, VT, PIT, TorType::OnePlane, KinType::GyroKin, ScatterType::Replication >::scatter ( const Grid< DeviceType > &  grid,
int  ithread,
const SimdGridWeights< Order::One, PIT_GLOBAL > &  grid_wts,
int  i_simd,
const SimdGyroWeights< GyroKin > &  rho_wts,
double  particle_weight 
) const
inline

Here is the call graph for this function:

template<class Device , VarType VT, PhiInterpType PIT>
int GridField< Device, VT, PIT, TorType::OnePlane, KinType::GyroKin, ScatterType::Replication >::size ( ) const
inline

Member Data Documentation

template<class Device , VarType VT, PhiInterpType PIT>
Kokkos::View<field_type***,Kokkos::LayoutRight,Device> GridField< Device, VT, PIT, TorType::OnePlane, KinType::GyroKin, ScatterType::Replication >::f
template<class Device , VarType VT, PhiInterpType PIT>
constexpr KinType GridField< Device, VT, PIT, TorType::OnePlane, KinType::GyroKin, ScatterType::Replication >::KT = KinType::GyroKin
static

The documentation for this struct was generated from the following file: