Télécharger gamdp.eso

Retour à la liste

Numérotation des lignes :

gamdp
  1. C GAMDP SOURCE CHAT 05/01/13 00:15:26 5004
  2. FUNCTION GAMDP(S,DS,ALF,R,IC,PREC,RFSG,RFEP,RFPR)
  3. C
  4. IMPLICIT INTEGER(I-N)
  5. IMPLICIT REAL*8 (A-H,O-Z)
  6.  
  7. -INC PPARAM
  8. -INC CCOPTIO
  9. C
  10. DIMENSION S(*),DS(*)
  11. C
  12. IF(IIMPI.EQ.9) WRITE(IOIMP,20) (S(I),I=1,6)
  13. IF(IIMPI.EQ.9) WRITE(IOIMP,21) (DS(I),I=1,6)
  14. IF(IIMPI.EQ.9) WRITE(IOIMP,22) ALF,R
  15. DSIEQ2=AVM(DS,DS)
  16. DSIEQ=SQRT(DSIEQ2)
  17. TRDSIG=DS(1)+DS(2)+DS(3)
  18. YY=DSIEQ2-ALF*ALF*TRDSIG*TRDSIG
  19. AA=AVM(S,DS)
  20. SIEQ02=AVM(S,S)
  21. TRSIG0=S(1)+S(2)+S(3)
  22. A2B=ALF*ALF*TRSIG0*TRDSIG
  23. XX=AA-A2B+ALF*R*TRDSIG
  24. ZZ2=(R-ALF*TRSIG0)**2
  25. IF(YY.EQ.0.D0) GO TO 1
  26. DELTA=XX*XX+YY*(ZZ2-SIEQ02)
  27. IF(IIMPI.EQ.9)
  28. . WRITE(IOIMP,23) DSIEQ2,TRDSIG,YY,AA,SIEQ02,TRSIG0,A2B,
  29. . XX,ZZ2,DELTA
  30. VRF=MAX(ABS(XX),RFPR)
  31. RFRF=VRF*VRF*PREC*PREC
  32. IF(ABS(DELTA).LE.RFRF.AND.DELTA.LE.0.D0) DELTA=0.D0
  33. IF(DELTA.GE.0.D0) GO TO 2
  34. IF(IIMPI.EQ.9) WRITE(IOIMP,11)DELTA
  35. GAMDP=100.D0
  36. RETURN
  37. 2 RADEL=SQRT(DELTA)
  38. GAMDP=(-XX+RADEL)/YY
  39. IF(IC.EQ.1)GAMDP=(-XX-RADEL)/YY
  40. RETURN
  41. 1 CRITD=DSIEQ-ALF*TRDSIG
  42. IF(CRITD.EQ.0.D0) GO TO 3
  43. IF(XX.NE.0.D0) GO TO 4
  44. IF(R.EQ.0.D0) GO TO 5
  45. IF(IIMPI.EQ.9) WRITE(IOIMP,10)
  46. GAMDP=100.D0
  47. RETURN
  48. 4 GAMDP=(ZZ2-SIEQ02)/(2.D0*XX)
  49. RETURN
  50. 5 GAMDP=0.D0
  51. RETURN
  52. 3 GAMDP=100.D0
  53. C
  54. 10 FORMAT(1X,'DANS GAMDP DETERMINANT EST NUL')
  55. 11 FORMAT(1X,'DANS GAMDP DELTA EST NEGATIF DELTA =',1PD12.5)
  56. 20 FORMAT(1X,'SIGMA =',6(1X,1PD12.5))
  57. 21 FORMAT(1X,'DSIGMA=',6(1X,1PD12.5))
  58. 22 FORMAT(1X,'ALFA =',1PD12.5,1X,'R =',1PD12.5)
  59. 23 FORMAT(1X,'DSIEQ2=',1PD12.5,1X,'TRDSIG=',1PD12.5,
  60. . 1X,'YY =',1PD12.5,1X,'AA =',1PD12.5,/,
  61. . 1X,'SIEQ02=',1PD12.5,1X,'TRSIG0=',1PD12.5,
  62. . 1X,'A2B =',1PD12.5,1X,'XX =',1PD12.5,/,
  63. . 1X,'ZZ2 =',1PD12.5,1X,'DELTA =',1PD12.5)
  64. C
  65. RETURN
  66. END
  67.  
  68.  
  69.  

© Cast3M 2003 - Tous droits réservés.
Mentions légales