Changeset 663 for codes/icosagcm/devel/Python/src/unstructured.pyx
- Timestamp:
- 01/19/18 23:43:11 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
codes/icosagcm/devel/Python/src/unstructured.pyx
r643 r663 1 1 import time 2 2 import math 3 import numpy as np4 cimport numpy as np5 3 import dynamico.wrap as wrap 4 from dynamico.libs import libicosa 5 6 6 from ctypes import c_void_p, c_int, c_double, c_bool 7 7 8 8 #from libc.time cimport time as ctime, time_t 9 9 from numpy cimport ndarray 10 cimport numpy as np 10 11 11 12 #------------- direct Cython interface to DYNAMICO routines -------------# … … 39 40 40 41 try: 41 kernels = wrap.SharedLib(vars(ker), 'libicosa.so', check_args=check_args)42 kernels = wrap.SharedLib(vars(ker), libicosa, check_args=check_args) 42 43 setvar, setvars, getvar, getvars = kernels.setvar, kernels.setvars, kernels.getvar, kernels.getvars 43 44 except OSError: … … 291 292 # i.e. index[start:end] with start=vtxdist[cell], end=vtxdist[cell+1] lists the edges of cell 'cell' 292 293 294 import numpy as np 295 293 296 def list_stencil(degree, stencil, cond=lambda x:True): 294 297 for i in range(degree.size):
Note: See TracChangeset
for help on using the changeset viewer.