1 subroutine akherm1(x,nx,fherm,ilinx,ier)
25 call akherm1p(x,nx,fherm,ilinx,0,ier)
30 subroutine akherm1p(x,nx,fherm,ilinx,ipx,ier)
61 call splinck(x,nx,ilinx,ztol,ier)
63 write(6,*)
'?akherm1: x axis not strict ascending.'
68 call ibc_ck(ipx,
'akherm1',
'Bdy Cond',0,2,ierbc)
77 cxp=(fherm(0,2)-fherm(0,1))/(x(2)-x(1))
78 cxm=(fherm(0,nx)-fherm(0,nx-1))/(x(nx)-x(nx-1))
87 cxpp=(fherm(0,3)-fherm(0,2))/(x(3)-x(2))
88 cxmm=(fherm(0,nx-1)-fherm(0,nx-2))/(x(nx-1)-x(nx-2))
90 call akherm0(cxmm,cxm,cxp,cxpp,wx,fherm(1,1))
91 fherm(1,nx)=fherm(1,1)
101 else if(ipx.eq.0)
then
106 cxpp=(fherm(0,3)-fherm(0,2))/(x(3)-x(2))
107 fherm(1,1)=1.5*cxp-0.5*cxpp
109 cxmm=(fherm(0,nx-1)-fherm(0,nx-2))/(x(nx-1)-x(nx-2))
110 fherm(1,nx)=1.5*cxm-0.5*cxmm
120 cxtrap0=2.0*fherm(1,1)-cxp
121 cxtrap1=2.0*fherm(1,nx)-cxm
128 cxtrap0=2.0*fherm(1,1)-cxp
129 cxtrap1=2.0*fherm(1,nx)-cxm
152 cxmm=(fherm(0,ixmm2)-fherm(0,ixmm1))/(x(ixmm2)-x(ixmm1))
158 cxpp=(fherm(0,ixpp2)-fherm(0,ixpp1))/(x(ixpp2)-x(ixpp1))
161 cxm=(fherm(0,ixm2)-fherm(0,ixm1))/(x(ixm2)-x(ixm1))
162 cxp=(fherm(0,ixp2)-fherm(0,ixp1))/(x(ixp2)-x(ixp1))
164 call akherm0(cxmm,cxm,cxp,cxpp,wx,fherm(1,ix))
171 subroutine akherm0(cxmm,cxm,cxp,cxpp,wx,result)
182 real cxmm,cxm,cxp,cxpp
188 if(wx(1)+wx(2).eq.0.0)
then
195 result=(wx(1)*cxm+wx(2)*cxp)/(wx(1)+wx(2))