Skip to content

Commit

Permalink
Drop deprecated conditional compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
LSchueler committed Jul 4, 2024
1 parent b80d8bb commit 51ab732
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/gstools/field/summator.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is the randomization method summator, implemented in cython.
import numpy as np
from cython.parallel import prange

IF OPENMP:
if OPENMP:
cimport openmp

cimport numpy as np
Expand All @@ -17,9 +17,9 @@ def set_num_threads(num_threads):
cdef int num_threads_c = 1
if num_threads is None:
# OPENMP set during setup
IF OPENMP:
if OPENMP:
num_threads_c = openmp.omp_get_num_procs()
ELSE:
else:
...
else:
num_threads_c = num_threads
Expand Down
6 changes: 3 additions & 3 deletions src/gstools/krige/krigesum.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is a summator for the kriging routines
import numpy as np
from cython.parallel import prange

IF OPENMP:
if OPENMP:
cimport openmp

cimport numpy as np
Expand All @@ -16,9 +16,9 @@ def set_num_threads(num_threads):
cdef int num_threads_c = 1
if num_threads is None:
# OPENMP set during setup
IF OPENMP:
if OPENMP:
num_threads_c = openmp.omp_get_num_procs()
ELSE:
else:
...
else:
num_threads_c = num_threads
Expand Down
6 changes: 3 additions & 3 deletions src/gstools/variogram/estimator.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This is the variogram estimater, implemented in cython.
import numpy as np
from cython.parallel import parallel, prange

IF OPENMP:
if OPENMP:
cimport openmp

cimport numpy as np
Expand All @@ -18,9 +18,9 @@ def set_num_threads(num_threads):
cdef int num_threads_c = 1
if num_threads is None:
# OPENMP set during setup
IF OPENMP:
if OPENMP:
num_threads_c = openmp.omp_get_num_procs()
ELSE:
else:
...
else:
num_threads_c = num_threads
Expand Down

0 comments on commit 51ab732

Please sign in to comment.