Commit 8f8bcf5f authored by Aidan Thompson's avatar Aidan Thompson
Browse files

Fixes bug in extract_compute() python method

parent 8f431b0f
Loading
Loading
Loading
Loading
+3 −8
Original line number Original line Diff line number Diff line
@@ -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