#include <gradient_matrices.hpp>
|
| GradientMatrices () |
|
| GradientMatrices (bool use) |
|
void | grid_deriv (const Grid< Device > &grid, const Kokkos::View< double *, Kokkos::LayoutRight, Device > &qty, const Kokkos::View< double *, Kokkos::LayoutRight, Device > &qty_deriv_x, const Kokkos::View< double *, Kokkos::LayoutRight, Device > &qty_deriv_y, bool discard_when_basis_is_one) const |
|
template<class Device>
void GradientMatrices< Device >::grid_deriv |
( |
const Grid< Device > & |
grid, |
|
|
const Kokkos::View< double *, Kokkos::LayoutRight, Device > & |
qty, |
|
|
const Kokkos::View< double *, Kokkos::LayoutRight, Device > & |
qty_deriv_x, |
|
|
const Kokkos::View< double *, Kokkos::LayoutRight, Device > & |
qty_deriv_y, |
|
|
bool |
discard_when_basis_is_one |
|
) |
| const |
|
inline |
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.
- Parameters
-
[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 |
- Returns
- void
The documentation for this class was generated from the following file: