Files
TomoATT/test/old_tests/inversion_ASCII/input_params.yml
2025-12-17 10:53:43 +08:00

52 lines
2.1 KiB
YAML

version : 2
domain :
#min_max_dep : [-2.863,17.137] # depth in km
min_max_dep : [-10.0, 10.0] # depth in km
min_max_lat : [37.7,42.3] # latitude in degree
min_max_lon : [22.7,27.3] # longitude in degree
n_rtp : [10,50,50] # number of nodes
source :
#src_dep_lat_lon : [5.0,40.0,24.0] # source depth in km, latitude, longitude in degree
#src_dep_lat_lon : [5750.6370,46.0,36.0] # source depth in km, latitude, longitude in degree
src_rec_file : 'src_rec_test_out.dat' # source receiver file (if found, src_dep_lat_lon is ignored)
swap_src_rec : 1 # swap source and receiver (1: yes, 0: no)
model :
init_model_type : '' # 'fd' (input file) or '1d_ak135'
init_model_path : './test_model_init.h5' # path to initial model file (ignored if init_model_type is '1d_*')
inversion :
run_mode : 1 # 0 for forward simulation only, 1 for inversion
optim_method : 0 # optimization method. 0 : "grad_descent", 1 : "lbfgs", 2 : "halve-stepping"
smooth_method : 0 # 0: multigrid parametrization, 1: laplacian smoothing with CG
max_iterations_inv : 100 # maximum number of inversion iterations
step_size : 0.01 # step size for inversion
# parameters for multiparametric inversion
n_inversion_grid : 5 # number of inversion grid sets
n_inv_dep_lat_lon : [5,10,10] # number of the base inversion grid points
min_max_dep_inv : [-10.0, 10.0] # depth in km with R = 6371.0
min_max_lat_inv : [37.7,42.3] # latitude in degree
min_max_lon_inv : [22.7,27.3] # longitude in degree
# parameters for laplacian smoothing
l_smooth_rtp : [10,10,10] # smoothing coefficients for each direction
regularization_weight : 1.0 # regularization weight NOTWORKING
# parameter for halving-stepping or lbfgs
max_sub_iterations : 100 # maximum number of sub-iterations
parallel :
n_sims : 1 # number of simultaneous run
ndiv_rtp : [1,2,2] # number of subdomains
nproc_sub : 2 # number of subprocess used for each subdomain
use_gpu : 0 # 0: CPU, 1: GPU
calculation :
convergence_tolerance : 1e-6
max_iterations : 200
stencil_order : 3 # 1 or 3
sweep_type : 2 # 0: legacy, 1: cuthill-mckee with shm parallelization