@@ -566,7 +566,7 @@ subroutine compute_coupled_injection_contribution_ac(NGLOB_AB,potential_dot_dot_
566566 ! point index using table lookup
567567 ipt = ipt_table(igll,iface)
568568
569- ! interpolates velocity/stress
569+ ! interpolates velocity/stress
570570 ! nqdu NOT CORRECT!!!
571571 ! vx_FK = cs1 * Veloc_FK(1,ipt,iim1) + cs2 * Veloc_FK(1,ipt,ii) + cs3 * Veloc_FK(1,ipt,iip1) + cs4 * Veloc_FK(1,ipt,iip2)
572572 ! vy_FK = cs1 * Veloc_FK(2,ipt,iim1) + cs2 * Veloc_FK(2,ipt,ii) + cs3 * Veloc_FK(2,ipt,iip1) + cs4 * Veloc_FK(2,ipt,iip2)
@@ -575,7 +575,7 @@ subroutine compute_coupled_injection_contribution_ac(NGLOB_AB,potential_dot_dot_
575575 ! tx_FK = cs1 * Tract_FK(1,ipt,iim1) + cs2 * Tract_FK(1,ipt,ii) + cs3 * Tract_FK(1,ipt,iip1) + cs4 * Tract_FK(1,ipt,iip2)
576576 ! ty_FK = cs1 * Tract_FK(2,ipt,iim1) + cs2 * Tract_FK(2,ipt,ii) + cs3 * Tract_FK(2,ipt,iip1) + cs4 * Tract_FK(2,ipt,iip2)
577577 ! tz_FK = cs1 * Tract_FK(3,ipt,iim1) + cs2 * Tract_FK(3,ipt,ii) + cs3 * Tract_FK(3,ipt,iip1) + cs4 * Tract_FK(3,ipt,iip2)
578-
578+
579579 ! now displ/chi_dot are saved in veloc_fk/tract_fk
580580 ux_FK = cs1 * Veloc_FK(1 ,ipt,iim1) + cs2 * Veloc_FK(1 ,ipt,ii) + &
581581 cs3 * Veloc_FK(1 ,ipt,iip1) + cs4 * Veloc_FK(1 ,ipt,iip2)
@@ -585,7 +585,7 @@ subroutine compute_coupled_injection_contribution_ac(NGLOB_AB,potential_dot_dot_
585585 cs3 * Veloc_FK(3 ,ipt,iip1) + cs4 * Veloc_FK(3 ,ipt,iip2)
586586 chi_dot_FK = cs1 * Tract_FK(1 ,ipt,iim1) + cs2 * Tract_FK(1 ,ipt,ii) + &
587587 cs3 * Tract_FK(1 ,ipt,iip1) + cs4 * Tract_FK(1 ,ipt,iip2)
588-
588+
589589 ! velocity
590590 ! vx = - vx_FK
591591 ! vy = - vy_FK
@@ -642,7 +642,7 @@ subroutine compute_coupled_injection_contribution_ac(NGLOB_AB,potential_dot_dot_
642642 ! here, it is added to first undo the factor (rhol*cpl) used to add the velocity contribution to the traction together
643643 ! with another (rhol*cpl) used in the expressions of the Sommerfeld condition, where
644644 ! absorbl = potential_dot_acoustic(iglob) * jacobianw / cpl / rhol
645-
645+
646646 un = ux* nx + uy* ny + uz* nz
647647 un = un + chi_dot / (rhol * cpl)
648648
@@ -673,25 +673,25 @@ end subroutine compute_coupled_injection_contribution_ac
673673 subroutine compute_coupled_injection_contribution_ac_GPU (iphase ,Mesh_pointer )
674674
675675 use constants
676-
676+
677677 use specfem_par, only: SAVE_STACEY,SIMULATION_TYPE
678-
679- use specfem_par, only: num_abs_boundary_faces
680-
678+
679+ use specfem_par, only: num_abs_boundary_faces
680+
681681 ! boundary coupling
682682 use shared_parameters, only: COUPLE_WITH_INJECTION_TECHNIQUE
683683 ! boundary injection wavefield parts for saving together with b_absorb_field
684684 use specfem_par_coupling, only: b_boundary_injection_potential
685-
685+
686686 implicit none
687-
687+
688688 ! communication overlap
689689 integer ,intent (in ) :: iphase
690-
690+
691691 ! GPU_MODE variables
692692 integer (kind= 8 ),intent (in ) :: Mesh_pointer
693693
694-
694+
695695 ! safety checks
696696 if (.not. COUPLE_WITH_INJECTION_TECHNIQUE) return
697697
@@ -703,13 +703,13 @@ subroutine compute_coupled_injection_contribution_ac_GPU(iphase,Mesh_pointer)
703703
704704 ! only for forward wavefield
705705 if (SIMULATION_TYPE /= 1 ) return
706-
707-
706+
707+
708708 ! compute contribution in device
709- call compute_coupled_injection_contribution_ac_device(Mesh_pointer,&
710- b_boundary_injection_potential,&
709+ call compute_coupled_injection_contribution_ac_device(Mesh_pointer, &
710+ b_boundary_injection_potential, &
711711 SAVE_STACEY)
712-
713-
712+
713+
714714 end subroutine compute_coupled_injection_contribution_ac_GPU
715-
715+
0 commit comments