Skip to content

Commit

Permalink
small implimentation detail with indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodot- committed Jul 22, 2024
1 parent 59a69da commit 098db98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tardis/transport/montecarlo/formal_integral_cuda.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def cuda_formal_integral(
patt_S_ul += 1
pJblue_lu += 1

for _ in range(max(nu_end_idx - pline, 1) - 1):
for _ in range(1, max(nu_end_idx - pline, 1)):
# calculate e-scattering optical depth to next resonance point
zend = time_explosion / C_INV * (1.0 - line_list_nu[pline] / nu)

Expand Down

0 comments on commit 098db98

Please sign in to comment.