1 subroutine profiles(p0, rbphi, dp0, drbphi, a)
20 real(r8),
dimension(nr),
intent(out) :: p0, rbphi, dp0, drbphi
21 real(r8),
intent(in) :: a
24 real(r8),
dimension(3) :: ablt
33 call
spline(npts, psivec, p_int, dpres(1) * sign(1._r8, cpsurfin), &
34 dpres(npts) * sign(1._r8, cpsurfin), 1, p_spline)
35 call
spline(npts, psivec, gam_int, dgam(1) * sign(1._r8, cpsurfin), &
36 dgam(npts) * sign(1._r8, cpsurfin), 1, rbphi_spline)
42 flux = psikn(nr - j + 1)
44 p0(j) = 0.5_r8 * a * b *
spwert(npts,
flux, p_spline, psivec, ablt, 0) &
45 * sign(1.0_r8, -alfa) * sign(1.0_r8, bvac)
47 rbphi(j) = p0(j) + eps * a *
spwert(npts,
flux, rbphi_spline, psivec, &
48 ablt, 0) * sign(1.0_r8, -alfa) * sign(1.0_r8, bvac)
52 p0(j) = eps * a * b *
spwert(npts,
flux, p_spline, psivec, ablt, 0) &
53 * sign(1.0_r8, -alfa) * sign(1.0_r8, bvac)
55 rbphi(j) = eps * a *
spwert(npts,
flux, rbphi_spline, psivec, ablt, 0) &
56 * sign(1.0_r8, -alfa) * sign(1.0_r8, bvac)
60 rbphi(j) = sqrt(1._r8 + 2._r8 * eps * rbphi(j) / alfa**2)
61 drbphi(j) = 1._r8 / (2._r8 * rbphi(j)) * 2._r8 * eps * drbphi(j) / alfa**2
64 if (verbosity > 2)
write(iu6, *)
'profiles computed with A = ', a
subroutine profiles(p0, rbphi, dp0, drbphi, a)
subroutine allocate_spline_coefficients(spline, n)
subroutine spline(N, X, Y, ALFA, BETA, TYP, A, B, C, D)
subroutine flux(psitok, rk, zk, nk)
REAL *8 function spwert(N, XWERT, A, B, C, D, X, ABLTG)
real(r8) function dgamma_dpsi(flux)
subroutine deallocate_spline_coefficients(spline)
real(r8) function dp_dpsi(flux)