Ignore:
Timestamp:
01/19/18 23:43:11 (6 years ago)
Author:
dubos
Message:

devel/Python : fix numpy messing up OpenMP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/devel/Python/src/unstructured.pyx

    r643 r663  
    11import time 
    22import math 
    3 import numpy as np 
    4 cimport numpy as np 
    53import dynamico.wrap as wrap 
     4from dynamico.libs import libicosa 
     5 
    66from ctypes import c_void_p, c_int, c_double, c_bool 
    77 
    88#from libc.time cimport time as ctime, time_t 
    99from numpy cimport ndarray 
     10cimport numpy as np 
    1011 
    1112#------------- direct Cython interface to DYNAMICO routines -------------# 
     
    3940 
    4041try:     
    41     kernels = wrap.SharedLib(vars(ker), 'libicosa.so', check_args=check_args)  
     42    kernels = wrap.SharedLib(vars(ker), libicosa, check_args=check_args)  
    4243    setvar, setvars, getvar, getvars = kernels.setvar, kernels.setvars, kernels.getvar, kernels.getvars 
    4344except OSError: 
     
    291292# i.e. index[start:end] with start=vtxdist[cell], end=vtxdist[cell+1] lists the edges of cell 'cell' 
    292293 
     294import numpy as np 
     295 
    293296def list_stencil(degree, stencil, cond=lambda x:True): 
    294297    for i in range(degree.size): 
Note: See TracChangeset for help on using the changeset viewer.