bugfix for extracting length of local data through python interface

This commit is contained in:
Axel Kohlmeyer
2020-03-07 10:19:03 -05:00
parent 980ef8095a
commit 943540b015

View File

@ -486,6 +486,7 @@ class lammps(object):
return None
elif style == 2:
self.lib.lammps_extract_compute.restype = POINTER(c_int)
ptr = self.lib.lammps_extract_compute(self.lmp,id,style,type)
return ptr[0]
if type == 1:
self.lib.lammps_extract_compute.restype = POINTER(c_double)