Skip to content

Commit

Permalink
change DEFs to cdef int constants
Browse files Browse the repository at this point in the history
  • Loading branch information
hmacdope committed Aug 16, 2023
1 parent 212bf03 commit 97060b9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions package/MDAnalysis/lib/nsgrid.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -83,18 +83,18 @@ import numpy as np
from libcpp.vector cimport vector
from libc cimport math

DEF END = -1
cdef int END = -1

DEF XX = 0
DEF XY = 3
DEF YY = 4
DEF XZ = 6
DEF YZ = 7
DEF ZZ = 8
cdef int XX = 0
cdef int XY = 3
cdef int YY = 4
cdef int XZ = 6
cdef int YZ = 7
cdef int ZZ = 8

# Cube root of the maximum size of a 32 bit signed integer. If the system is divided into more
# grids than this, integer overflow will occur.
DEF MAX_GRID_DIM = 1290
cdef int MAX_GRID_DIM = 1290

ctypedef float coordinate[3]

Expand Down

0 comments on commit 97060b9

Please sign in to comment.