XGC1
|
#include "grid_deriv.hpp"
Functions | |
void | grid_deriv (const GradientMatrices< DeviceType > &gm, const Grid< DeviceType > &grid, const Kokkos::View< double *, Kokkos::LayoutRight, DeviceType > &qty, const Kokkos::View< double *, Kokkos::LayoutRight, DeviceType > &qty_deriv_x, const Kokkos::View< double *, Kokkos::LayoutRight, DeviceType > &qty_deriv_y, bool discard_when_basis_is_one) |
void grid_deriv | ( | const GradientMatrices< DeviceType > & | gm, |
const Grid< DeviceType > & | grid, | ||
const Kokkos::View< double *, Kokkos::LayoutRight, DeviceType > & | qty, | ||
const Kokkos::View< double *, Kokkos::LayoutRight, DeviceType > & | qty_deriv_x, | ||
const Kokkos::View< double *, Kokkos::LayoutRight, DeviceType > & | qty_deriv_y, | ||
bool | discard_when_basis_is_one | ||
) |
Computes the gradient of grid based quantities If sml_grad_psitheta is defined, the output are the psi-theta components of the field, if sml_grad_psitheta is not defined, the output are the R-Z components Conversion to R-Z is done in efield routine.
[in] | gm | is the gradient matrices |
[in] | grid | is the grid object |
[in] | qty | is the quantity you want the gradient of |
[out] | qty_deriv_x | is grad_x(qty) |
[out] | qty_deriv_y | is grad_y(qty) |
[in] | discard_when_basis_is_one | is a flag for whether to check the basis and zero out grad_y(qty) if it is 1 |