Skip to content

Commit

Permalink
fix indexing error in fill_region_float
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishavlin committed Aug 27, 2024
1 parent ba832f4 commit af49fcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt/utilities/lib/misc_utilities.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ def fill_region_float(np.ndarray[np.float64_t, ndim=2] fcoords,
if (sp[1] + odsp[1] < LE[1]) or (sp[1] - odsp[1] > RE[1]): continue
for zi in range(2):
if diter[2][zi] == 999: continue
sp[2] = osp[2] + diterv[2][yi]
sp[2] = osp[2] + diterv[2][zi]
if (sp[2] + odsp[2] < LE[2]) or (sp[2] - odsp[2] > RE[2]): continue
for i in range(3):
ld[i] = <np.int64_t> fmax(((sp[i]-odsp[i]-LE[i])*box_idds[i]),0)
Expand Down

0 comments on commit af49fcd

Please sign in to comment.