Skip to content

Commit d63096f

Browse files
committed
added nogil
1 parent 68459ca commit d63096f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyansys/cython/_cellqual.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ cdef uint8 VTK_QUADRATIC_HEXAHEDRON = 25
2525
cdef double d_nan = np.nan
2626

2727
# Inline subfunctions
28-
cdef inline double TripleProduct(double [3] ab, double [3] bc, double [3] cd):
28+
cdef inline double TripleProduct(double [3] ab, double [3] bc, double [3] cd) nogil:
2929
return ab[0] * (bc[1] * cd[2] - bc[2] * cd[1]) -\
3030
bc[0] * (ab[1] * cd[2] - ab[2] * cd[1]) +\
3131
cd[0] * (ab[1] * bc[2] - ab[2] * bc[1])
3232

3333

34-
cdef inline double NormCalc(double [3] vec):
34+
cdef inline double NormCalc(double [3] vec) nogil:
3535
return sqrt(vec[0]**2 + vec[1]**2 + vec[2]**2)
3636

3737

0 commit comments

Comments
 (0)