-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathqssource.f
69 lines (69 loc) · 1.24 KB
/
qssource.f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
subroutine qssource(ros,vps,vss)
implicit none
c
double precision ros,vps,vss
c
include 'qsglobal.h'
c
integer i,istp
double precision pi,pi2
c
do istp=1,6
do i=1,6
sfct0(i,istp)=0.d0
sfct1(i,istp)=0.d0
enddo
enddo
c
pi=4.d0*datan(1.d0)
pi2=2.d0*pi
c
c istp = 1
c explosion source (m11=m22=m33=1)
c
ms(1)=0
ics(1)=1
sfct0(1,1)=-1.d0/(pi2*ros*vps*vps)
sfct1(4,1)=-(vss/vps)**2/pi
c
c istype = 2
c strike-slip (m12=m21=1)
c
ms(2)=2
ics(2)=-1
sfct1(4,2)=1.d0/pi2
sfct1(6,2)=-sfct1(4,2)
c
c istype = 3
c dip-slip (m13=m31=1)
c
ms(3)=1
ics(3)=1
sfct0(3,3)=-1.d0/(pi2*ros*vss*vss)
sfct0(5,3)=sfct0(3,3)
c
c istp = 4
c compensated linear vector dipole (CLVD) (m11=m22=-1/2, M33=1)
c
ms(4)=0
ics(4)=1
sfct0(1,4)=-1.d0/(pi2*ros*vps*vps)
sfct1(4,4)=(3.d0-4.d0*(vss/vps)**2)/(2.d0*pi2)
c
c istp = 5
c vertical-single-force (fz=1)
c
ms(5)=0
ics(5)=1
sfct0(2,5)=1.d0/pi2
c
c istp = 6
c horizontal-single-force (fx=1)
c
ms(6)=1
ics(6)=1
sfct0(4,6)=1.d0/pi2
sfct0(6,6)=sfct0(4,6)
c
return
end