0001 function [A,f]=patch_se(A,f,ifro,nov,dx,jacx,dy,jacy);
0002
0003
0004
0005
0006
0007
0008
0009
0010 [ldnov,ne]=size(nov);
0011 noe=length(f);
0012 npdx=length(dx);
0013 npdy=length(dy);
0014
0015
0016
0017
0018 for i=1:noe
0019 if (ifro(i)==-1)
0020 A(i,:)=zeros(1,noe);
0021 f(i)=0;
0022 end
0023 end
0024
0025
0026 mn=npdx*npdy;
0027 for ie=1:ne
0028 Al=patch_sp(dx,jacx(ie),dy,jacy(ie));
0029 for j=1:npdy
0030 for i=1:npdx
0031 k=(j-1)*npdx+i;
0032 ii=nov(k,ie);
0033 if(ifro(ii)==-1)
0034 A(ii,nov(1:mn,ie))=A(ii,nov(1:mn,ie))+Al(k,:);
0035 end
0036 end
0037 end
0038 end
0039 return