32
33
34
35
36
37
38#include "implicit_f.inc"
39
40
41
42#include "mvsiz_p.inc"
43
44
45
46#include "com04_c.inc"
47#include "param_c.inc"
48#include "vect01_c.inc"
49
50
51
52 INTEGER :: NEL
53 INTEGER , DIMENSION(NEL) :: PID,MAT
54 my_real ,
DIMENSION(NEL) :: deltax, aire, vol, dtx
55 my_real :: pm(npropm,nummat),geo(npropg,numgeo)
56
57
58
59 INTEGER I, MX
60
62 . rho0(mvsiz), gs, nu, c1, ssp(mvsiz), vis(mvsiz)
63
64 mx = mat(1)
65 gs = pm(22,mx)
66 nu = pm(21,mx)
67 c1 = third*gs*(one + nu)/(one - two*nu)
68 DO i=lft,llt
69 rho0(i) = pm( 1,mx)
70 vis(i) = zero
71 END DO
72
73
74
75 DO i=lft,llt
76 ssp(i)=sqrt((four_over_3*gs+c1)/rho0(i))
77 END DO
78
79
80
81 IF(jsph==0)THEN
82 CALL dtel(ssp,pm,geo,pid,mat, rho0, vis, deltax, aire, vol, dtx)
83 ELSE
84 CALL dtsph(ssp,pm,geo,pid,mat, rho0, vis, deltax, vol, dtx)
85 ENDIF
86
87 RETURN
subroutine dtel(ssp, pm, geo, pid, mat, rho0, vis, deltax, aire, vol, dtx)
subroutine dtsph(ssp, pm, geo, pid, mat, rho0, vis, deltax, vol, dtx)