28 subroutine make_seismic_moment_pointsources_nhfault()
39 integer*4 :: n_neighbours, ipt, indxL
40 character*70 :: file_srcout
42 real(kdkind) :: query_vec(3)
43 real(kdkind),
dimension(:,:),
allocatable :: nodes_in_xyz
44 type(kdtree2),
pointer :: kd2_obj_locnode
45 type(kdtree2_result) :: result_temp(1)
52 write(*,
'(A)')
'-----------Building the Seismic Moment vector----------'
57 file_srcout =
'srcmod_points.out'
58 open(444,file=file_srcout)
85 kd2_obj_locnode =>
kdtree2_create(nodes_in_xyz,sort=.false.,rearrange
98 indxl = result_temp(1)%idx
134 if (
mpi_id.eq.0 .and.
i .eq. 1)
write(*,
'(A)')
135 if (
mpi_id.eq.0 .and.
i .eq. 1)
write(*,
'(A)')
'Seismic faults'
136 if (
mpi_id.eq.0 .and.
i .eq. 1)
write(*,
'(A)')
138 if (
mpi_id.eq.0)
write(*,
'(A,I6,A,I6,A)')
'Seismic Faults - '' is generated by '' nodes'
142 if (
mpi_id.eq.0)
write(*,*)
'Distance from Actual Node [m] = '
144 if (
mpi_id.eq.0)
write(*,
'(A)')
155 deallocate(nodes_in_xyz)
172 end subroutine make_seismic_moment_pointsources_nhfault
subroutine get_minvalues(i_glo, v_glo, n_glo, i_loc, n_loc, np)
Computes positions of minimum values.
type(kdtree2) function, pointer, public kdtree2_create(input_data, dim, sort, rearrange)
subroutine, public kdtree2_destroy(tp)
subroutine, public kdtree2_n_nearest(tp, qv, nn, results)
Contains SPEED PARAMETERS used in (SPEED, READ_INPUT_FILES, MAKE_PARTION_AND_MPI_FILES,...
real *8, dimension(:,:), allocatable pos_sour_node_y
real *8, dimension(:,:), allocatable pos_sour_node_x
real *8, dimension(:,:), allocatable factor_seismic_moment
integer *4, dimension(:), allocatable sism_el_glo
real *8, dimension(:,:), allocatable val_sism_el
real *8, dimension(:), allocatable zz_spx_loc
real *8, dimension(:), allocatable yy_spx_loc
real *8, dimension(:,:), allocatable dist_sour_node_sism
integer *4, dimension(:), allocatable local_node_num
real *8, dimension(:), allocatable posy_el_glo
integer *4, dimension(:), allocatable num_node_sism
integer *4 max_num_node_sism
real *8, dimension(:), allocatable posx_el_glo
real *8, dimension(:), allocatable posz_el_glo
real *8, dimension(:), allocatable xx_spx_loc
real *8, dimension(:,:), allocatable pos_sour_node_z
integer *4, dimension(:,:), allocatable sour_node_sism
real *8, dimension(:,:), allocatable tau_seismic_moment
real *8, dimension(:), allocatable dist_el_glo