@@ -19,7 +19,7 @@ module externalforces
1919! :Dependencies: dump_utils, infile_utils, io, metric, metric_tools, part,
2020! units
2121!
22- use metric, only:mass1,a
22+ use metric, only:mass1,a,charge
2323 implicit none
2424
2525 private
@@ -36,7 +36,7 @@ module externalforces
3636 !
3737 integer , parameter , public :: iext_gr = 1
3838
39- public :: mass1,a ! exported from metric module
39+ public :: mass1,a,charge ! exported from metric module
4040 real , public :: accradius1 = 0 .
4141 real , public :: accradius1_hard = 0 .
4242 real , public :: accretedmass1 = 0 .
@@ -186,7 +186,7 @@ end subroutine update_externalforce
186186! +
187187!- ----------------------------------------------------------------------
188188subroutine accrete_particles (iexternalforce ,xi ,yi ,zi ,hi ,mi ,ti ,accreted ,i )
189- use metric_tools, only:imet_minkowski,imet_schwarzschild,imet_kerr,imetric,imet_binarybh
189+ use metric_tools, only:imet_minkowski,imet_schwarzschild,imet_kerr,imet_rn, imetric,imet_binarybh
190190 use part, only:set_particle_type,iboundary,maxphase,maxp,igas,npartoftype
191191 use metric, only:accrete_particles_metric
192192 integer , intent (in ) :: iexternalforce
@@ -202,7 +202,7 @@ subroutine accrete_particles(iexternalforce,xi,yi,zi,hi,mi,ti,accreted,i)
202202 case (imet_minkowski)
203203 if (first) print * ," WARNING: Accrete particles: but Metric = Minkowski"
204204
205- case (imet_schwarzschild,imet_kerr)
205+ case (imet_schwarzschild,imet_kerr,imet_rn )
206206 r2 = xi* xi + yi* yi + zi* zi
207207 if (accradius1> accradius1_hard .and. r2 < accradius1** 2 .and. maxphase== maxp .and. present (i)) then
208208 call set_particle_type(i,iboundary)
0 commit comments