create_cart_map_matrix Subroutine

public subroutine create_cart_map_matrix(cart_map_csr, equi, mesh, polar_grid, intorder, dbgout)

Creates matrix that maps a field from polar mesh to Cartesian mesh (only for closed field line region)

Arguments

Type IntentOptional Attributes Name
type(csrmat_t), intent(out), allocatable :: cart_map_csr

Created Cartesian map matrix in CSR format

class(equilibrium_t), intent(inout) :: equi

Equilibrium

type(mesh_cart_t), intent(in) :: mesh

Cartesian mesh

type(polar_grid_t), intent(in) :: polar_grid

Polar grid

integer, intent(in) :: intorder

Interpolation order of the mapping

integer, intent(in), optional :: dbgout

Specifies the number of information printed on screen