Skip to content

Commit

Permalink
removed scatter function from interaction.py (#2110)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonachitchyan authored Aug 3, 2022
1 parent 406fdbc commit a97d35c
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions tardis/montecarlo/montecarlo_numba/interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,24 +143,6 @@ def sample_nu_free_bound(numba_plasma, shell, continuum_id):
)


@njit(**njit_dict_no_parallel)
def scatter(r_packet, time_explosion):

old_doppler_factor = get_doppler_factor(
r_packet.r, r_packet.mu, time_explosion
)
comov_nu = r_packet.nu * old_doppler_factor
comov_energy = r_packet.energy * old_doppler_factor
r_packet.mu = get_random_mu()
inverse_new_doppler_factor = get_inverse_doppler_factor(
r_packet.r, r_packet.mu, time_explosion
)

r_packet.energy = comov_energy * inverse_new_doppler_factor

return comov_nu, inverse_new_doppler_factor


@njit(**njit_dict_no_parallel)
def continuum_event(
r_packet,
Expand Down

0 comments on commit a97d35c

Please sign in to comment.