1. Takafumi Arakaki
  2. ctypes_icc

Commits

Takafumi Arakaki  committed 62733d5

removed init function. the segfaults still occurs.

  • Participants
  • Parent commits d5049e9
  • Branches default

Comments (0)

Files changed (2)

File ifnet_a2a2.c

View file
  • Ignore whitespace
 }
 
 int
-IFNetAllToAll2_init(IFNetAllToAll2 *self)
-{
-  return 0;
-}
-
-int
 IFNetAllToAll2_vec_v0_rk2(IFNetAllToAll2 *self)
 {
   double isyn_estimate;

File run.py

View file
  • Ignore whitespace
 IFNetAllToAll2Struct_p = ctypes.POINTER(IFNetAllToAll2Struct)
 
 ifnet_a2a2 = numpy.ctypeslib.load_library('libifnet_a2a2.so', '.')
-ifnet_a2a2.IFNetAllToAll2_init.restype = ctypes.c_int
-ifnet_a2a2.IFNetAllToAll2_init.argtypes = [IFNetAllToAll2Struct_p]
 ifnet_a2a2.IFNetAllToAll2_vec_v0_rk2.restype = ctypes.c_int
 ifnet_a2a2.IFNetAllToAll2_vec_v0_rk2.argtypes = [IFNetAllToAll2Struct_p]
 
 
-def init(struct):
-    ifnet_a2a2.IFNetAllToAll2_init(ctypes.pointer(struct))
-
-
 def vec_v0_rk2(struct):
     ifnet_a2a2.IFNetAllToAll2_vec_v0_rk2(ctypes.pointer(struct))
 
     ifn.v0 = v0.ctypes.data_as(c_double_p)
     ifn.vi = vi.ctypes.data_as(c_double_p)
 
-    init(ifn)
     vec_v0_rk2(ifn)
 
     v0 + vi