@@ -32,6 +32,9 @@ module m_monopole
3232 real (kind (0d0 )), allocatable , dimension (:) :: mag, length, npulse, dir, delay
3333 ! $acc declare create(mag, length, npulse, dir, delay)
3434
35+ real (kind (0d0 )), allocatable , dimension (:) :: gammas, pi_infs
36+ ! $acc declare create(gammas, pi_infs)
37+
3538contains
3639
3740 subroutine s_initialize_monopole_module ()
@@ -54,10 +57,18 @@ subroutine s_initialize_monopole_module()
5457 end do
5558 end do
5659 ! $acc update device(mag, support, length, npulse, pulse, dir, delay, foc_length, aperture, loc_mono)
60+
61+ allocate (gammas(1 :num_fluids), pi_infs(1 :num_fluids))
62+
63+ do i = 1 , num_fluids
64+ gammas(i) = fluid_pp(i)% gamma
65+ pi_infs(i) = fluid_pp(i)% pi_inf
66+ end do
67+ ! $acc update device(gammas, pi_infs)
5768 end subroutine
5869
5970 subroutine s_monopole_calculations (mono_mass_src , mono_mom_src , mono_e_src , myalpha_rho , myalpha , q_cons_vf , &
60- q_prim_vf , t_step , id , rhs_vf , gammas , pi_infs )
71+ q_prim_vf , t_step , id , rhs_vf )
6172
6273 type (scalar_field), dimension (sys_size), intent (inout ) :: q_cons_vf ! <
6374 ! ! This variable contains the WENO-reconstructed values of the cell-average
@@ -75,8 +86,6 @@ subroutine s_monopole_calculations(mono_mass_src, mono_mom_src, mono_e_src, myal
7586 real (kind (0d0 )) :: myR, myV, alf, myP, myRho, R2Vav
7687 integer , intent (IN ) :: t_step
7788
78- real (kind (0d0 )), dimension (1 :num_fluids) :: gammas, pi_infs
79-
8089 integer :: i, j, k, l, q, ii, id ! < generic loop variables
8190 integer :: term_index
8291
0 commit comments