trj402
C TRJ402 SOURCE CHAT 05/01/13 03:48:07 5004 C C CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC C C CALCUL DES COORDONNEES DE REFERENCES DANS UN QUA4 C XNOEU COORDONNEES DES SOMMETS C X REELLES C G REFERENCES C CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC C C IMPLICIT INTEGER(I-N) IMPLICIT REAL*8 (A-H,O-Z) C DIMENSION X(2),DX(2),A(2,2),B(2,2),XNOEU(2,4),Y(2) DIMENSION DG(2),XN(4),D1XN(4),D2XN(4),G(2) -INC PPARAM -INC CCOPTIO C C C DATA XNOEU/-169.952,232.302, -172.395,211.479, C * -151.215,206.963, -143.835,227.232/ C DATA XNOEU/1.,1., 3.,1., 5.,4., 2.,6./ C DATA XNOEU/1.,1., 4.,3., 0.,6., -2.,4./ C DATA X/0.5,2.1/ C DATA X/2.5,2.1/ C DATA X/1.8,1.1/ C DATA X/-150.,220/ C C C C IDIM=2 NOEL=4 Y(1)=0.D0 Y(2)=0.D0 G(1)=0.D0 G(2)=0.D0 C C WRITE(6,*)' XNOEU ' C WRITE(6,*)XNOEU(1,1),XNOEU(2,1) C WRITE(6,*)XNOEU(1,2),XNOEU(2,2) C WRITE(6,*)XNOEU(1,3),XNOEU(2,3) C WRITE(6,*)XNOEU(1,4),XNOEU(2,4) C WRITE(6,*)' X ',X(1),X(2) C DO 1 I=1,NOEL Y(1)=0.25D0*XNOEU(1,I)+Y(1) Y(2)=0.25D0*XNOEU(2,I)+Y(2) 1 CONTINUE C DX(1)=X(1)-Y(1) DX(2)=X(2)-Y(2) C A(1,1)=0.25D0*(-XNOEU(1,1)+XNOEU(1,2)+XNOEU(1,3)-XNOEU(1,4)) A(1,2)=0.25D0*(-XNOEU(2,1)+XNOEU(2,2)+XNOEU(2,3)-XNOEU(2,4)) A(2,1)=0.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4 I=1,NOEL A(1,1)=D1XN(I)*XNOEU(1,I)+A(1,1) A(1,2)=D1XN(I)*XNOEU(2,I)+A(1,2) A(2,1)=D2XN(I)*XNOEU(1,I)+A(2,1) A(2,2)=D2XN(I)*XNOEU(2,I)+A(2,2) 4 CONTINUE C C WRITE(6,*) C WRITE(6,*)' K ',K C WRITE(6,*)' Y ',Y C WRITE(6,*)' DG ',DG C WRITE(6,*)' G ',G C 10 CONTINUE C C WRITE(6,1000)X(1),X(2),DA1,DA2 MOTERR(1:8)='TRJ402 ' REAERR(1)=X(1) REAERR(2)=X(2) REAERR(3)=0. C CALL ERREUR(-300) IER=-300 1000 FORMAT(//,5X,' PROBLEME DE CONVERGENCE AU POINT SITUE EN ', * 2(1PE12.5),/,5X,' CONVERGENCE ',2(1PE12.5)) 51 CONTINUE RETURN END
© Cast3M 2003 - Tous droits réservés.
Mentions légales