-
Notifications
You must be signed in to change notification settings - Fork 220
/
socal_model.f90
62 lines (51 loc) · 1.78 KB
/
socal_model.f90
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
!=====================================================================
!
! S p e c f e m 3 D V e r s i o n 1 . 4
! ---------------------------------------
!
! Dimitri Komatitsch and Jeroen Tromp
! Seismological Laboratory - California Institute of Technology
! (c) California Institute of Technology September 2006
!
! This program is free software; you can redistribute it and/or modify
! it under the terms of the GNU General Public License as published by
! the Free Software Foundation; either version 2 of the License, or
! (at your option) any later version.
!
! This program is distributed in the hope that it will be useful,
! but WITHOUT ANY WARRANTY; without even the implied warranty of
! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! GNU General Public License for more details.
!
! You should have received a copy of the GNU General Public License along
! with this program; if not, write to the Free Software Foundation, Inc.,
! 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
!
!=====================================================================
subroutine socal_model(idoubling,rho,vp,vs)
implicit none
include "constants.h"
integer idoubling
double precision rho,vp,vs
if(idoubling == IFLAG_HALFSPACE_MOHO) then
vp=7.8d0
vs=4.5d0
rho=3.0d0
else if(idoubling == IFLAG_MOHO_16km) then
vp=6.7d0
vs=3.87d0
rho=2.8d0
else if(idoubling == IFLAG_ONE_LAYER_TOPOGRAPHY .or. idoubling == IFLAG_BASEMENT_TOPO) then
vp=5.5d0
vs=3.18d0
rho=2.4d0
else
vp=6.3d0
vs=3.64d0
rho=2.67d0
endif
! scale to standard units
vp = vp * 1000.d0
vs = vs * 1000.d0
rho = rho * 1000.d0
end subroutine socal_model