0001 function [Xdeltap_imj,Xdeltap_ipj,...
0002 Xdeltam_ijm,Xdeltam_ijp,...
0003 Xdeltap_imjmm,Xdeltap_imjpp,Xdeltap_ipjmm,Xdeltap_ipjpp,...
0004 Xdeltam_immjm,Xdeltam_ippjm,Xdeltam_immjp,Xdeltam_ippjp,...
0005 xdeltap_npj,xdeltap_npjmm,xdeltap_npjpp] = ...
0006 fppgridweights_dke_yp(Xdpnmm,Xdpnm,Xdpn,Xdpnp,Xdpnpp,...
0007 Xdmhumm,Xdmhum,Xdmhu,Xdmhup,Xdmhupp,...
0008 XDpp_ipj,XDpp_imj,XFp_ipj,XFp_imj,...
0009 XDpp_ij,XFp_ij);
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029 if nargin < 16,
0030 error('Wrong number of input arguments in fppgridweights_dke_yp')
0031 end
0032
0033 [np,nmhu] = size(Xdpnmm);
0034
0035
0036
0037 Xdeltap_ipj = g_dke_yp(-Xdpnp.*XFp_ipj./XDpp_ipj);
0038 Xdeltap_imj = g_dke_yp(-Xdpnm.*XFp_imj./XDpp_imj);
0039
0040 Xdeltap_imjmm = zeros(np,nmhu);Xdeltap_imjmm(:,2:nmhu) = Xdeltap_imj(:,1:nmhu-1);
0041 Xdeltap_imjmm(:,1) = Xdeltap_imj(:,1);
0042 Xdeltap_imjpp = zeros(np,nmhu);Xdeltap_imjpp(:,1:nmhu-1) = Xdeltap_imj(:,2:nmhu);
0043 Xdeltap_imjpp(:,nmhu) = Xdeltap_imj(:,nmhu);
0044
0045 Xdeltap_ipjmm = zeros(np,nmhu);Xdeltap_ipjmm(:,2:nmhu) = Xdeltap_ipj(:,1:nmhu-1);
0046 Xdeltap_ipjmm(:,1) = Xdeltap_ipj(:,1);
0047 Xdeltap_ipjpp = zeros(np,nmhu);Xdeltap_ipjpp(:,1:nmhu-1) = Xdeltap_ipj(:,2:nmhu);
0048 Xdeltap_ipjpp(:,nmhu) = Xdeltap_ipj(:,nmhu);
0049
0050
0051
0052 xdeltap_npj = g_dke_yp(-(Xdpnm(np,:) + Xdpnp(np,:)).*XFp_ij(np,:)./XDpp_ij(np,:));
0053 xdeltap_npjmm = zeros(1,nmhu);xdeltap_npjmm(2:nmhu) = xdeltap_npj(1:nmhu-1);
0054 xdeltap_npjmm(1) = xdeltap_npj(1);
0055 xdeltap_npjpp = zeros(1,nmhu);xdeltap_npjpp(1:nmhu-1) = xdeltap_npj(2:nmhu);
0056 xdeltap_npjpp(nmhu) = xdeltap_npj(nmhu);
0057
0058
0059
0060 Xdeltam_ijp = Xdmhupp./(Xdmhu + Xdmhupp);
0061 Xdeltam_ijm = Xdmhu./(Xdmhu + Xdmhumm);
0062
0063 Xdeltam_immjm = zeros(np,nmhu);Xdeltam_immjm(2:np,:) = Xdeltam_ijm(1:np-1,:);
0064 Xdeltam_immjm(1,:) = Xdeltam_ijm(1,:);
0065 Xdeltam_ippjm = zeros(np,nmhu);Xdeltam_ippjm(1:np-1,:) = Xdeltam_ijm(2:np,:);
0066 Xdeltam_ippjm(np,:) = Xdeltam_ijm(np,:);
0067
0068 Xdeltam_immjp = zeros(np,nmhu);Xdeltam_immjp(2:np,:) = Xdeltam_ijp(1:np-1,:);
0069 Xdeltam_immjp(1,:) = Xdeltam_ijp(1,:);
0070 Xdeltam_ippjp = zeros(np,nmhu);Xdeltam_ippjp(1:np-1,:) = Xdeltam_ijp(2:np,:);
0071 Xdeltam_ippjp(np,:) = Xdeltam_ijp(np,:);
0072