@@ -239,17 +239,19 @@ module m_global_parameters
239239 type(int_bounds_info) :: stress_idx !< Indexes of first and last shear stress eqns.
240240 integer :: c_idx ! Index of the color function
241241 type(int_bounds_info) :: species_idx !< Indexes of first & last concentration eqns.
242- type(int_bounds_info) :: temperature_idx !< Indexes of first & last temperature eqns.
242+ integer :: T_idx !< Index of the temperature equation
243243 !> @}
244244
245245 !$acc declare create(bub_idx)
246246
247247 ! Cell Indices for the (local) interior points (O- m, O- n, 0 - p).
248+ ! Stands for " InDices With INTerior" .
248249 type(int_bounds_info) :: idwint(1 :3 )
249250 !$acc declare create(idwint)
250251
251252 ! Cell Indices for the entire (local) domain. In simulation and post_process,
252253 ! this includes the buffer region. idwbuff and idwint are the same otherwise.
254+ ! Stands for " InDices With BUFFer" .
253255 type(int_bounds_info) :: idwbuff(1 :3 )
254256 !$acc declare create(idwbuff)
255257
@@ -301,7 +303,7 @@ module m_global_parameters
301303
302304 integer :: startx, starty, startz
303305
304- !$acc declare create(sys_size, buff_size, startx, starty, startz, E_idx, gamma_idx, pi_inf_idx, alf_idx, n_idx, stress_idx, species_idx)
306+ !$acc declare create(sys_size, buff_size, startx, starty, startz, E_idx, T_idx, gamma_idx, pi_inf_idx, alf_idx, n_idx, stress_idx, species_idx)
305307
306308 ! END: Simulation Algorithm Parameters =====================================
307309
@@ -467,9 +469,8 @@ module m_global_parameters
467469 integer :: bubxb, bubxe
468470 integer :: strxb, strxe
469471 integer :: chemxb, chemxe
470- integer :: tempxb, tempxe
471472
472- !$acc declare create(momxb, momxe, advxb, advxe, contxb, contxe, intxb, intxe, bubxb, bubxe, strxb, strxe, chemxb, chemxe, tempxb, tempxe )
473+ !$acc declare create(momxb, momxe, advxb, advxe, contxb, contxe, intxb, intxe, bubxb, bubxe, strxb, strxe, chemxb, chemxe)
473474
474475#ifdef CRAY_ACC_WAR
475476 @:CRAY_DECLARE_GLOBAL(real (kind (0d0 )), dimension (:), gammas, gs_min, pi_infs, ps_inf, cvs, qvs, qvps)
@@ -1004,9 +1005,8 @@ contains
10041005 species_idx%end = sys_size + num_species
10051006 sys_size = species_idx%end
10061007
1007- temperature_idx%beg = sys_size + 1
1008- temperature_idx%end = sys_size + 1
1009- sys_size = temperature_idx%end
1008+ T_idx = sys_size + 1
1009+ sys_size = T_idx
10101010 end if
10111011
10121012 if (qbmm .and. .not. polytropic) then
@@ -1118,10 +1118,8 @@ contains
11181118 intxe = internalEnergies_idx%end
11191119 chemxb = species_idx%beg
11201120 chemxe = species_idx%end
1121- tempxb = temperature_idx%beg
1122- tempxe = temperature_idx%end
11231121
1124- !$acc update device(momxb, momxe, advxb, advxe, contxb, contxe, bubxb, bubxe, intxb, intxe, sys_size, buff_size, E_idx, alf_idx, n_idx, adv_n, adap_dt, pi_fac, strxb, strxe, chemxb, chemxe, tempxb, tempxe )
1122+ !$acc update device(momxb, momxe, advxb, advxe, contxb, contxe, bubxb, bubxe, intxb, intxe, sys_size, buff_size, E_idx, T_idx, alf_idx, n_idx, adv_n, adap_dt, pi_fac, strxb, strxe, chemxb, chemxe)
11251123 !$acc update device(species_idx)
11261124 !$acc update device(cfl_target, m, n, p)
11271125
0 commit comments