From 0ee7bc6e01160b4d1be31dfac8f1444ce8c05421 Mon Sep 17 00:00:00 2001 From: Richard Berger Date: Tue, 11 May 2021 21:22:29 -0400 Subject: [PATCH] Update remaining variable names after refactor --- python/lammps/core.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/lammps/core.py b/python/lammps/core.py index 6761f9502c..1e8f739943 100644 --- a/python/lammps/core.py +++ b/python/lammps/core.py @@ -911,14 +911,14 @@ class lammps(object): else: return None if ctype == LMP_TYPE_SCALAR: - if style == LMP_STYLE_GLOBAL: + if cstyle == LMP_STYLE_GLOBAL: self.lib.lammps_extract_compute.restype = POINTER(c_double) with ExceptionCheck(self): ptr = self.lib.lammps_extract_compute(self.lmp,cid,cstyle,ctype) return ptr[0] - elif style == LMP_STYLE_ATOM: + elif cstyle == LMP_STYLE_ATOM: return None - elif style == LMP_STYLE_LOCAL: + elif cstyle == LMP_STYLE_LOCAL: self.lib.lammps_extract_compute.restype = POINTER(c_int) with ExceptionCheck(self): ptr = self.lib.lammps_extract_compute(self.lmp,cid,cstyle,ctype)