Skip to content

Commit

Permalink
precompute twoPI
Browse files Browse the repository at this point in the history
Co-authored-by: Corentin Cadiou <[email protected]>
  • Loading branch information
chrishavlin and cphyc authored Oct 10, 2024
1 parent 5269837 commit ad92f03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt/utilities/lib/pixelization_routines.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ def pixelize_cylinder(np.float64_t[:,:] buff,
cdef np.float64_t r_inc, theta_inc
cdef np.float64_t costheta, sintheta
cdef int i, i1, pi, pj
cdef np.float64_t npPI = np.pi
cdef np.float64_t twoPI = 2 * np.pi

cdef int imin, imax
imin = np.asarray(radius).argmin()
Expand Down

0 comments on commit ad92f03

Please sign in to comment.