mirror of https://github.com/lammps/lammps.git
Fixes bug in extract_compute() python method
This commit is contained in:
parent
8f431b0fb8
commit
8f8bcf5f7b
|
@ -399,11 +399,6 @@ class lammps(object):
|
||||||
ptr = self.lib.lammps_extract_compute(self.lmp,id,style,type)
|
ptr = self.lib.lammps_extract_compute(self.lmp,id,style,type)
|
||||||
return ptr
|
return ptr
|
||||||
if type == 2:
|
if type == 2:
|
||||||
if style == 0:
|
|
||||||
self.lib.lammps_extract_compute.restype = POINTER(c_int)
|
|
||||||
ptr = self.lib.lammps_extract_compute(self.lmp,id,style,type)
|
|
||||||
return ptr[0]
|
|
||||||
else:
|
|
||||||
self.lib.lammps_extract_compute.restype = POINTER(POINTER(c_double))
|
self.lib.lammps_extract_compute.restype = POINTER(POINTER(c_double))
|
||||||
ptr = self.lib.lammps_extract_compute(self.lmp,id,style,type)
|
ptr = self.lib.lammps_extract_compute(self.lmp,id,style,type)
|
||||||
return ptr
|
return ptr
|
||||||
|
|
Loading…
Reference in New Issue