From 943540b0157053a2dc4698baa89b813e19bd4e57 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sat, 7 Mar 2020 10:19:03 -0500 Subject: [PATCH] bugfix for extracting length of local data through python interface --- python/lammps.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/lammps.py b/python/lammps.py index 2e597f9e18..84ce22e9f0 100644 --- a/python/lammps.py +++ b/python/lammps.py @@ -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)