7 function pchsp_95(x, f, ibeg, iend, vc_beg, vc_end)
36 real,
intent(in):: x(:)
43 real,
intent(in):: f(:)
47 INTEGER,
intent(in):: ibeg
66 INTEGER,
intent(in):: iend
76 REAL,
intent(in),
optional:: vc_beg
80 REAL,
intent(in),
optional:: vc_end
84 real pchsp_95(size(x))
99 n =
assert_eq(
size(x),
size(f),
"pchsp_95 n")
100 if ((ibeg == 1 .or. ibeg == 2) .and. .not.
present(vc_beg))
then
101 print *,
"vc_beg required for IBEG = 1 or 2"
104 if ((iend == 1 .or. iend == 2) .and. .not.
present(vc_end))
then
105 print *,
"vc_end required for IEND = 1 or 2"
109 if (
present(vc_beg)) vc(1) = vc_beg
110 if (
present(vc_end)) vc(2) = vc_end
111 call pchsp(ic, vc, n, x, f, pchsp_95, 1, wk,
size(wk), ierr)
112 if (ierr /= 0) stop 1
real function, dimension(size(x)) pchsp_95(x, f, ibeg, iend, vc_beg, vc_end)
subroutine pchsp(IC, VC, N, X, F, D, INCFD, WK, NWK, IERR)