Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | pchunk | |||
real(kind=rp), | intent(in), | DIMENSION(pchunk) | :: | Y_R | ||
real(kind=rp), | intent(in), | DIMENSION(pchunk) | :: | Y_PHI | ||
real(kind=rp), | intent(in), | DIMENSION(pchunk) | :: | Y_Z | ||
real(kind=rp), | intent(out), | DIMENSION(pchunk) | :: | B_R | ||
real(kind=rp), | intent(out), | DIMENSION(pchunk) | :: | B_PHI | ||
real(kind=rp), | intent(out), | DIMENSION(pchunk) | :: | B_Z | ||
real(kind=rp), | intent(out), | DIMENSION(pchunk) | :: | E_R | ||
real(kind=rp), | intent(out), | DIMENSION(pchunk) | :: | E_PHI | ||
real(kind=rp), | intent(out), | DIMENSION(pchunk) | :: | E_Z | ||
real(kind=rp), | intent(out), | DIMENSION(pchunk) | :: | ne | ||
real(kind=rp), | intent(out), | DIMENSION(pchunk) | :: | Te | ||
real(kind=rp), | intent(out), | DIMENSION(pchunk) | :: | Zeff | ||
integer(kind=is), | intent(inout), | DIMENSION(pchunk) | :: | flag_cache |
subroutine interp_collision_p(pchunk,Y_R,Y_PHI,Y_Z,B_R,B_PHI,B_Z,E_R,E_PHI,E_Z, &
ne,Te,Zeff,flag_cache)
INTEGER, INTENT(IN) :: pchunk
REAL(rp),DIMENSION(pchunk),INTENT(IN) :: Y_R,Y_PHI,Y_Z
REAL(rp),DIMENSION(pchunk),INTENT(OUT) :: B_R,B_PHI,B_Z
REAL(rp),DIMENSION(pchunk),INTENT(OUT) :: E_R,E_PHI,E_Z
REAL(rp),DIMENSION(pchunk),INTENT(OUT) :: ne,Te,Zeff
INTEGER(is),DIMENSION(pchunk),INTENT(INOUT) :: flag_cache
! INTEGER(ip) :: ezerr
call check_if_in_profiles_domain_p(pchunk,Y_R,Y_PHI,Y_Z,flag_cache)
call EZspline_interp(bfield_2d%R,bfield_2d%PHI,bfield_2d%Z,efield_2d%R, &
efield_2d%PHI,efield_2d%Z,profiles_2d%ne,profiles_2d%Te, &
profiles_2d%Zeff,pchunk,Y_R,Y_Z,B_R,B_PHI,B_Z, &
E_R,E_PHI,E_Z,ne,Te,Zeff,ezerr)
call EZspline_error(ezerr)
end subroutine interp_collision_p