bugfix for extracting length of local data through python interface
This commit is contained in:
@ -486,6 +486,7 @@ class lammps(object):
|
|||||||
return None
|
return None
|
||||||
elif style == 2:
|
elif style == 2:
|
||||||
self.lib.lammps_extract_compute.restype = POINTER(c_int)
|
self.lib.lammps_extract_compute.restype = POINTER(c_int)
|
||||||
|
ptr = self.lib.lammps_extract_compute(self.lmp,id,style,type)
|
||||||
return ptr[0]
|
return ptr[0]
|
||||||
if type == 1:
|
if type == 1:
|
||||||
self.lib.lammps_extract_compute.restype = POINTER(c_double)
|
self.lib.lammps_extract_compute.restype = POINTER(c_double)
|
||||||
|
|||||||
Reference in New Issue
Block a user