XGCa
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
grid_deriv.hpp File Reference
#include "gradient_matrices.hpp"
#include "grid.hpp"
Include dependency graph for grid_deriv.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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)
 

Function Documentation

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.

Parameters
[in]gmis the gradient matrices
[in]gridis the grid object
[in]qtyis the quantity you want the gradient of
[out]qty_deriv_xis grad_x(qty)
[out]qty_deriv_yis grad_y(qty)
[in]discard_when_basis_is_oneis a flag for whether to check the basis and zero out grad_y(qty) if it is 1
Returns
void

Here is the call graph for this function: