@@ -238,35 +238,6 @@ real(dp) function chi_effective(chi, c0, c1, c2, z1, z2)
238
238
min (c1* z2, c2* (pow(z2/ z1,two_thirds) + 0.6d0 ))
239
239
end function chi_effective
240
240
241
- real(dp) function get_typical_charge (cid , a1 , z1 , T , log_T , rho , log_rho )
242
- use mod_tables
243
- use chem_def
244
- integer , intent (in ) :: cid
245
- real (dp), intent (in ) :: a1, z1, T, log_T, rho, log_rho
246
- real (dp) :: chi, c0, c1, c2, z2, chi_eff
247
- integer :: i, izmax
248
- include ' formats'
249
- if (.not. ionization_tables_okay) then
250
- call set_ionization_potentials
251
- ionization_tables_okay = .true.
252
- end if
253
- izmax = int (chem_isos% Z(cid))
254
- get_typical_charge = dble (izmax)
255
- if (izmax > 30 ) return
256
- call chi_info(a1, z1, T, log_T, rho, log_rho, chi, c0, c1, c2)
257
- do i= 1 , izmax-1
258
- z2 = dble (i)
259
- chi_eff = chi_effective(chi, c0, c1, c2, z1, z2+1 )
260
- if (chi_eff < ip(izmax,i+1 )) then
261
- get_typical_charge = z2
262
- return
263
- end if
264
- end do
265
- end function get_typical_charge
266
-
267
-
268
-
269
-
270
241
271
242
end module mod_ionization
272
243
0 commit comments