[yt-svn] commit/yt-3.0: MatthewTurk: Adding cdivision fixes.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Sat Aug 17 11:07:35 PDT 2013


1 new commit in yt-3.0:

https://bitbucket.org/yt_analysis/yt-3.0/commits/57241afde049/
Changeset:   57241afde049
Branch:      yt-3.0
User:        MatthewTurk
Date:        2013-08-17 20:07:20
Summary:     Adding cdivision fixes.
Affected #:  1 file

diff -r f6c18705bf76fa980051bd4cb8e1fd4b60d94563 -r 57241afde0494a6f2b6c80637009f0e6d2283229 yt/frontends/artio/_artio_caller.pyx
--- a/yt/frontends/artio/_artio_caller.pyx
+++ b/yt/frontends/artio/_artio_caller.pyx
@@ -992,6 +992,7 @@
         self.sfc_start = sfc_start
         self.sfc_end = sfc_end
 
+    @cython.cdivision(True)
     cdef np.int64_t pos_to_sfc(self, np.float64_t pos[3]) nogil:
         # Calculate the index
         cdef int coords[3], i
@@ -1001,6 +1002,7 @@
         sfc = artio_sfc_index(self.handle, coords)
         return sfc
 
+    @cython.cdivision(True)
     cdef void sfc_to_pos(self, np.int64_t sfc, np.float64_t pos[3]) nogil:
         cdef int coords[3], i
         artio_sfc_coords(self.handle, sfc, coords)

Repository URL: https://bitbucket.org/yt_analysis/yt-3.0/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list