summaryrefslogtreecommitdiff
blob: a447c4b3a303a529d79a00fb340dd3789363a91f (plain)
1
2
3
4
5
6
7
8
9
10
11
--- lammps-23Mar16/python/lammps.py	(original)
+++ lammps-23Mar16/python/lammps.py	(refactored)
@@ -208,7 +208,7 @@
       result = (c_double*nlocal)()
       self.lib.lammps_extract_variable.restype = POINTER(c_double)
       ptr = self.lib.lammps_extract_variable(self.lmp,name,group)
-      for i in xrange(nlocal): result[i] = ptr[i]
+      for i in range(nlocal): result[i] = ptr[i]
       self.lib.lammps_free(ptr)
       return result
     return None