1 #ifndef FIELD_WEIGHTS_HPP
2 #define FIELD_WEIGHTS_HPP
12 template<KinType T, PhiInterpType PIT>
23 template<
class Device>
27 rho[0].set(rho_in[0][i_simd], inv_drho, nrho);
28 rho[1].set(rho_in[1][i_simd], inv_drho, nrho);
38 template<
class Device>
42 rho.set(rho_in[i_simd], inv_drho, nrho);
53 template<
class Device>
66 template<
class Device>
69 rho.set(rho_in[i_simd], inv_drho, nrho);
77 template<
class Device>
KOKKOS_INLINE_FUNCTION FieldWeights(const Grid< Device > &grid, double phi_in, int i_simd, SimdGyroRadius< DriftKin > &rho_in, double inv_drho, int nrho)
Definition: field_weights.hpp:78
double inv_delta_phi
1/delta_phi
Definition: grid.hpp:220
Definition: linear_weights.hpp:7
Definition: field_weights.hpp:13
Definition: globals.hpp:82
LinearWeights phi
Definition: field_weights.hpp:35
int nplanes
Number of planes.
Definition: grid.hpp:217
KOKKOS_INLINE_FUNCTION FieldWeights(const Grid< Device > &grid, double phi_in, int i_simd, SimdGyroRadius< GyroKin > &rho_in, double inv_drho, int nrho)
Definition: field_weights.hpp:67
PhiInterpType
Definition: globals.hpp:88
LinearWeights rho
Definition: field_weights.hpp:36
Definition: globals.hpp:83
KOKKOS_INLINE_FUNCTION FieldWeights(const Grid< Device > &grid, double phi_in, int i_simd, SimdGyroRadius< DriftKin > &rho_in, double inv_drho, int nrho)
Definition: field_weights.hpp:54
LinearWeights phi
Definition: field_weights.hpp:51
Definition: gyro_radius.hpp:96
LinearWeights rho
Definition: field_weights.hpp:64
Definition: gyro_radius.hpp:74
KOKKOS_INLINE_FUNCTION FieldWeights(const Grid< Device > &grid, double phi_in, int i_simd, SimdGyroRadius< GyroKin > &rho_in, double inv_drho, int nrho)
Definition: field_weights.hpp:39