Commits

Matthew Turk  committed 3c033ed

Switch to floor from rint.

  • Participants
  • Parent commits 3e88307
  • Branches yt-3.0

Comments (0)

Files changed (1)

File yt/geometry/oct_container.pyx

 cimport numpy as np
 import numpy as np
 from selection_routines cimport SelectorObject
-from libc.math cimport rint
+from libc.math cimport floor
 cimport selection_routines
 
 ORDER_MAX = 20
         cdef np.int64_t ind[3], level = -1
         for i in range(3):
             dds[i] = (self.DRE[i] - self.DLE[i])/self.nn[i]
-            ind[i] = <np.int64_t> (rint((ppos[i] - self.DLE[i])/dds[i]))
+            ind[i] = <np.int64_t> (floor((ppos[i] - self.DLE[i])/dds[i]))
             cp[i] = (ind[i] + 0.5) * dds[i] + self.DLE[i]
             ipos[i] = 0
             ind32[i] = ind[i]