Skip to content

Commit 5132677

Browse files
committed
[ci optional] delete typical charge out of ionization module (it's in star)
1 parent 00531b5 commit 5132677

File tree

6 files changed

+0
-804
lines changed

6 files changed

+0
-804
lines changed

ionization/make/makefile_base

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ SRCS = \
1717
ion_tables_load.f90 \
1818
ion_tables_eval.f90 \
1919
ion_table_plot.f90 \
20-
mod_tables.f90 \
2120
mod_ionization.f90 \
2221
ionization_lib.f90
2322

ionization/private/mod_ionization.f90

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -238,35 +238,6 @@ real(dp) function chi_effective(chi, c0, c1, c2, z1, z2)
238238
min(c1*z2, c2*(pow(z2/z1,two_thirds) + 0.6d0))
239239
end function chi_effective
240240

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-
270241

271242
end module mod_ionization
272243

0 commit comments

Comments
 (0)