Skip to content

Commit 2a5e4d1

Browse files
committed
updates coupling_points array format
1 parent 32c154a commit 2a5e4d1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/specfem3D/couple_with_injection.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2259,7 +2259,7 @@ subroutine locate_coupling_points(num_coupling_points_total,coupling_points)
22592259
implicit none
22602260

22612261
integer, intent(in) :: num_coupling_points_total
2262-
real(kind=CUSTOM_REAL),dimension(7,num_coupling_points_total),intent(in) :: coupling_points
2262+
real(kind=CUSTOM_REAL),dimension(6,num_coupling_points_total),intent(in) :: coupling_points
22632263

22642264
! local parameters
22652265
integer :: ipoin,islice,ispec,ier
@@ -2573,7 +2573,7 @@ subroutine determine_local_coupling_points(num_coupling_points_total,coupling_po
25732573
implicit none
25742574

25752575
integer, intent(in) :: num_coupling_points_total
2576-
real(kind=CUSTOM_REAL),dimension(7,num_coupling_points_total),intent(in) :: coupling_points
2576+
real(kind=CUSTOM_REAL),dimension(6,num_coupling_points_total),intent(in) :: coupling_points
25772577

25782578
double precision, dimension(num_coupling_points_total), intent(in) :: xi_point,eta_point,gamma_point
25792579
double precision, dimension(num_coupling_points_total), intent(in) :: x_found,y_found,z_found

src/specfem3D/setup_sources_receivers.f90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2212,13 +2212,13 @@ subroutine setup_coupling_boundary_points()
22122212
call flush_IMAIN()
22132213

22142214
! allocate points array
2215-
allocate(coupling_points(7,num_coupling_points_total),stat=ier)
2215+
allocate(coupling_points(6,num_coupling_points_total),stat=ier)
22162216
if (ier /= 0) stop 'Error allocating coupling points array'
22172217
coupling_points(:,:) = 0.0_CUSTOM_REAL
22182218

22192219
! reads in point infos
22202220
do ipoin = 1,num_coupling_points_total
2221-
! format: #x #y #z #nx #ny #nz #iproc
2221+
! format: #x #y #z #nx #ny #nz
22222222
read(IIN) coupling_points(:,ipoin)
22232223
enddo
22242224

@@ -2234,13 +2234,13 @@ subroutine setup_coupling_boundary_points()
22342234

22352235
! allocate arrays on other processes
22362236
if (.not. allocated(coupling_points)) then
2237-
allocate(coupling_points(7,num_coupling_points_total),stat=ier)
2237+
allocate(coupling_points(6,num_coupling_points_total),stat=ier)
22382238
if (ier /= 0) stop 'Error allocating coupling points array'
22392239
coupling_points(:,:) = 0.0_CUSTOM_REAL
22402240
endif
22412241

22422242
! broadcast point infos
2243-
call bcast_all_cr(coupling_points,7*num_coupling_points_total)
2243+
call bcast_all_cr(coupling_points,6*num_coupling_points_total)
22442244

22452245
! locate coupling points
22462246
call locate_coupling_points(num_coupling_points_total,coupling_points)

0 commit comments

Comments
 (0)