From 49da946398c88a17b30fca2a1a2b011d8f613c86 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 21 Jan 2019 05:52:28 -0500 Subject: [PATCH] fix bug reported in https://github.com/lammps/lammps/issues/1294 --- python/lammps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/lammps.py b/python/lammps.py index 598e4c506f..a60b9420c8 100644 --- a/python/lammps.py +++ b/python/lammps.py @@ -986,7 +986,7 @@ class PyLammps(object): elif line.startswith("Dihedrals"): parts = self._split_values(line) system['ndihedrals'] = int(self._get_pair(parts[0])[1]) - system['nangletypes'] = int(self._get_pair(parts[1])[1]) + system['ndihedraltypes'] = int(self._get_pair(parts[1])[1]) system['dihedral_style'] = self._get_pair(parts[2])[1] elif line.startswith("Impropers"): parts = self._split_values(line)