rtgrid Subroutine

private subroutine rtgrid(rgrid, rp, theta)

Calculate rgrid for the case of eeq and deq: in this case, rgrid is the distance to the magnetic axis as a function of theta.

Arguments

Type IntentOptional Attributes Name
real, intent(out), dimension(-ntgrid:) :: rgrid
real, intent(in) :: rp
real, intent(in), dimension(-ntgrid:) :: theta

Contents

Source Code


Source Code

  subroutine rtgrid(rgrid, rp, theta)
    implicit none
    real, dimension(-ntgrid:), intent (out) :: rgrid
    real, intent (in) :: rp
    real, dimension(-ntgrid:), intent (in) :: theta
    integer :: i
    do i = -nth, nth
       rgrid(i) = geom%rfun(rp, theta(i))
    end do
  end subroutine rtgrid