21 real(r8),
intent(in) :: a
23 real(r8),
intent(out) :: bpl
25 real(r8),
dimension(3) :: ablt
27 real(r8) :: parea, carea
28 real(r8) :: r, wr, s, ws
29 real(r8) :: x, xr, xs, y, yr, ys, ps, psr, pss
32 integer(itm_i4) :: i, j, ngr, ngs
33 integer(itm_i4) :: nelm
34 integer(itm_i4) :: n1, n2, n3, n4
37 if (ias == 1) factas = 1._r8
44 call
spline(npts, psivec, p_int, dpres(1) * sign(1._r8, cpsurfin), &
45 dpres(npts) * sign(1._r8, cpsurfin), 1, p_spline)
50 nelm = (i - 1) * (np - 1) + j
60 call
interpolation(1, xx(1, n1), xx(1, n2), xx(1, n3), xx(1, n4), &
62 call
interpolation(1, yy(1, n1), yy(1, n2), yy(1, n3), yy(1, n4), &
64 call
interpolation(1, psi(4 * (n1 - 1) + 1), psi(4 * (n2 - 1) &
65 + 1), psi(4 * (n3 - 1) + 1), psi(4 * (n4 - 1) + 1), r, s, ps, &
67 xjac = xr * ys - xs * yr
68 parea = parea + wr * ws * xjac *
spwert(npts, ps, p_spline, &
70 arhs =
rh_side(a, x, 0._r8, 0._r8, 0._r8, 0._r8, ps, 0._r8, 0._r8)
71 carea = carea + wr * ws * xjac * arhs
77 parea = 0.5_r8 * factas * a * b * parea
78 carea = factas * a * carea
80 parea = factas * eps * a * b * parea
81 carea = factas * a * carea
83 bpl = -(8._r8 * pi / eps) * parea / carea**2
subroutine betapol(a, bpl)
subroutine interpolation(type_interp, xn1, xn2, xn3, xn4, r, s, x, xr, xs, xrs, xrr, xss, yn1, yn2, yn3, yn4, pn1, pn2, pn3, pn4, yr, ys, ps)
subroutine allocate_spline_coefficients(spline, n)
subroutine spline(N, X, Y, ALFA, BETA, TYP, A, B, C, D)
REAL *8 function spwert(N, XWERT, A, B, C, D, X, ABLTG)
real(r8) function rh_side(a, x, xr, xs, yr, ys, psi, psir, F_dia)
subroutine deallocate_spline_coefficients(spline)
subroutine set_node_number(n_node, n1, n2, n3, n4)