Changeset 663 for codes/icosagcm/devel/Python/src
- Timestamp:
- 01/19/18 23:43:11 (6 years ago)
- Location:
- codes/icosagcm/devel/Python/src
- Files:
-
- 2 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): -
codes/icosagcm/devel/Python/src/xios.pyx
r630 r663 1 from dynamico.libs import libxios 2 import dynamico.wrap as wrap 1 3 import numpy as np 2 import dynamico.wrap as wrap 4 3 5 from ctypes import c_int, c_double, c_bool, c_void_p, c_char_p, byref, POINTER, Structure 4 6 c_void_pp=POINTER(c_void_p) # used in prototype … … 35 37 36 38 lib=wrap.Struct() 37 cxios = wrap.SharedLib(vars(lib), "libxios.so", prefix_so='cxios_')39 cxios = wrap.SharedLib(vars(lib), libxios, prefix_so='cxios_') 38 40 39 41 class Duration(Structure):
Note: See TracChangeset
for help on using the changeset viewer.