pb603
C PB603 SOURCE MAGN 10/05/19 21:15:12 6676 IMPLICIT INTEGER(I-N) IMPLICIT REAL*8 (A-H,O-Z) C************************************************************************ C C C C************************************************************************ REAL*8 XREF(ND,NP),X(NPG),Y(NPG),Z(NPG) CHARACTER*4 NOM2 DIMENSION FN(NP,NPG),GR(ND,NP,NPG),PG(NPG) DIMENSION FM(MP,NPG),GM(ND,MP,NPG) * TC n'a pas l'air de servir * DIMENSION U(5),H(5),XA(3),XB(3),XC(3),XD(3),XX(3) ** SAVE XA,XB,XC,XD * DATA XA/3*0.25D0/,XB/0.75D0,0.25D0,0.75D0/ * DATA XC/2*0.75D0,0.25D0/,XD/0.25D0,2*0.75D0/ C*** C>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> R2=SQRT(2.D0) NP2=NP*ND XREF(1,1)=0.D0 XREF(2,1)=0.D0 XREF(3,1)=0.D0 XREF(1,2)=R2 XREF(2,2)=0.D0 XREF(3,2)=0.D0 XREF(1,3)=0.D0 XREF(2,3)=R2 XREF(3,3)=0.D0 XREF(1,4)=0.D0 XREF(2,4)=0.D0 XREF(3,4)=1.D0 XREF(1,5)=R2 XREF(2,5)=0.D0 XREF(3,5)=1.D0 XREF(1,6)=0.D0 XREF(2,6)=R2 XREF(3,6)=1.D0 C Verification des coordonnées C IF(.TRUE.)THEN IF(.FALSE.)THEN DO 11 L=1,NP X(L)=XREF(1,L) Y(L)=XREF(2,L) Z(L)=XREF(3,L) 11 CONTINUE DO 12 L=1,NP FN(1,L)=(X(L)+Y(L)-R2)*(Z(L)-1.D0)/R2 FN(2,L)=-X(L)*(Z(L)-1.D0)/R2 FN(3,L)=-Y(L)*(Z(L)-1.D0)/R2 FN(4,L)=-(X(L)+Y(L)-R2)*Z(L)/R2 FN(5,L)=X(L)*Z(L)/R2 FN(6,L)=Y(L)*Z(L)/R2 write(6,1033)L,FN(1,L),FN(2,L),FN(3,L),FN(4,L),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