@@ -109,33 +109,11 @@ contains
109109
110110 integer :: i
111111
112- if (igr) then
113- if (num_fluids == 1 ) then
114- alpha_rho(1 ) = q_prim_vf(contxb)%sf(j, k, l)
115- alpha(1 ) = 1._wp
116- else
117- $:GPU_LOOP(parallelism= ' [seq]' )
118- do i = 1 , num_fluids - 1
119- alpha_rho(i) = q_prim_vf(i)%sf(j, k, l)
120- alpha(i) = q_prim_vf(advxb + i - 1 )%sf(j, k, l)
121- end do
122-
123- alpha_rho(num_fluids) = q_prim_vf(num_fluids)%sf(j, k, l)
124- alpha(num_fluids) = 1._wp - sum (alpha(1 :num_fluids - 1 ))
125- end if
126- else
127- $:GPU_LOOP(parallelism= ' [seq]' )
128- do i = 1 , num_fluids
129- alpha_rho(i) = q_prim_vf(i)%sf(j, k, l)
130- alpha(i) = q_prim_vf(advxb + i - 1 )%sf(j, k, l)
131- end do
132- end if
112+ call s_compute_species_fraction(q_prim_vf, j, k, l, alpha_rho, alpha)
133113
134114 if (elasticity) then
135115 call s_convert_species_to_mixture_variables_acc(rho, gamma, pi_inf, qv, alpha, &
136116 alpha_rho, Re, G_local, Gs)
137- elseif (bubbles_euler) then
138- call s_convert_species_to_mixture_variables_bubbles_acc(rho, gamma, pi_inf, qv, alpha, alpha_rho, Re)
139117 else
140118 call s_convert_species_to_mixture_variables_acc(rho, gamma, pi_inf, qv, alpha, alpha_rho, Re)
141119 end if
0 commit comments