-
Notifications
You must be signed in to change notification settings - Fork 92
/
constants_tomography.h.in
151 lines (123 loc) · 5.76 KB
/
constants_tomography.h.in
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
!=====================================================================
!
! S p e c f e m 3 D G l o b e
! ----------------------------
!
! Main historical authors: Dimitri Komatitsch and Jeroen Tromp
! Princeton University, USA
! and CNRS / University of Marseille, France
! (there are currently many more authors!)
! (c) Princeton University and CNRS / University of Marseille, April 2014
!
! 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 3 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.
!
!=====================================================================
!
!--- user can modify parameters below
!
!!-----------------------------------------------------------
!!
!! Model parameterization
!!
!!-----------------------------------------------------------
! by default, this algorithm uses transverse isotropic (bulk,bulk_betav,bulk_betah,eta) kernels to sum up
! if you prefer using isotropic kernels, set flags below accordingly
! if you prefer using isotropic kernels (bulk,bulk_beta,rho) kernels, set this flag to true
logical, parameter :: USE_ISO_KERNELS = .false.
! if you prefer isotropic (alpha,beta,rho) kernels, set this flag to true
logical, parameter :: USE_ALPHA_BETA_RHO = .false.
! region code
! (local version "_", globe version "_reg1_" for crust/mantle
character(len=8),parameter :: REG = "_reg1_"
!!-----------------------------------------------------------
!!
!! Directory structure
!!
!!-----------------------------------------------------------
! directory containing kernels from current iteration
character(len=MAX_STRING_LEN) :: INPUT_KERNELS_DIR = 'INPUT_GRADIENT/'
! directory containing kernels from previous iteration
character(len=MAX_STRING_LEN) :: KERNEL_OLD_DIR = './KERNELS/OUTPUT_SUM.old'
! directory containing model database files
character(len=MAX_STRING_LEN) :: INPUT_MODEL_DIR = 'INPUT_MODEL/'
! directory containing external_mesh.bin database files
character(len=MAX_STRING_LEN) :: INPUT_DATABASES_DIR = 'topo/'
! destination for newly updated model database files
character(len=MAX_STRING_LEN) :: OUTPUT_MODEL_DIR = 'OUTPUT_MODEL/'
! file containing absolute or relative paths to kernel directories
character(len=MAX_STRING_LEN) :: KERNEL_FILE_LIST = './kernels_list.txt'
! maximum number of kernel paths
integer, parameter :: MAX_KERNEL_PATHS = 10000
!!-----------------------------------------------------------
!!
!! Log files
!!
!!-----------------------------------------------------------
! destination for log files containing minimum, maximum vales
character(len=MAX_STRING_LEN) :: OUTPUT_STATISTICS_DIR = 'OUTPUT_MODEL/'
! produce logs containing minimum, maximum vales and other statistics
logical :: PRINT_STATISTICS_FILES = .false.
!!-----------------------------------------------------------
!!
!! Scaling laws
!!
!!-----------------------------------------------------------
! ignore rho kernel, but use density perturbations as a scaling of Vs perturbations
logical, parameter :: USE_RHO_SCALING = .true.
! in case of rho scaling, specifies density scaling factor with shear perturbations
! see e.g. Montagner & Anderson (1989), Panning & Romanowicz (2006)
real(kind=CUSTOM_REAL),parameter :: RHO_SCALING = 0.33_CUSTOM_REAL
!!-----------------------------------------------------------
!!
!! Transversely isotropic (TI) model constraints
!!
!!-----------------------------------------------------------
! constraint on eta model
real(kind=CUSTOM_REAL),parameter :: LIMIT_ETA_MIN = 0.5_CUSTOM_REAL
real(kind=CUSTOM_REAL),parameter :: LIMIT_ETA_MAX = 1.5_CUSTOM_REAL
!!-----------------------------------------------------------
!!
!! Approximate Hessian
!!
!!-----------------------------------------------------------
! 1 permille of maximum for inverting Hessian
real(kind=CUSTOM_REAL),parameter :: THRESHOLD_HESS = 1.e-3
! sums all Hessians before inverting and preconditioning
! by default should be set to .true.
logical, parameter :: USE_HESS_SUM = .true.
!!-----------------------------------------------------------
!!
!! Maximum kernel scaling
!!
!!-----------------------------------------------------------
! kernel values are maximum at very shallow depth (due to receivers at surface) which leads to strong
! model updates closest to the surface. scaling the kernel values, such that the maximum is taken slightly below
! the surface (between 50km - 100km) leads to a "more balanced" gradient, i.e., a better model update in deeper parts
! by default, sets maximum update in this depth range
logical,parameter :: USE_DEPTH_RANGE_MAXIMUM = .true.
!!-----------------------------------------------------------
!!
!! Source mask
!!
!!-----------------------------------------------------------
! uses source mask to blend out source elements
logical, parameter :: USE_SOURCE_MASK = .false.
!!-----------------------------------------------------------
!!
!! Deprecated
!!
!!-----------------------------------------------------------
! determines separate step length for each material parameter in nonlinear conjugate gradient model update
logical,parameter :: USE_SEPARATE_CG_STEPLENGTHS = .false.