switch proc_grid to procgrid with backward compatibility for PyLammps

This commit is contained in:
Axel Kohlmeyer
2024-06-18 21:13:14 -04:00
parent d2ea3b1ac5
commit 19a8313578
4 changed files with 8 additions and 9 deletions

View File

@ -660,11 +660,11 @@ create_atoms 1 single &
self.assertEqual(self.lmp.extract_global("subhi_lambda"), [1.0, 1.0, 1.0])
# processor grid
self.assertEqual(self.lmp.extract_global("proc_grid"), [1,1,1])
self.assertEqual(self.lmp.extract_global("procgrid"), [1,1,1])
self.lmp.command("comm_style tiled")
self.lmp.command("run 0 post no")
self.lmp.command("balance 0.1 rcb")
self.assertEqual(self.lmp.extract_global("proc_grid"), None)
self.assertEqual(self.lmp.extract_global("procgrid"), None)
def test_create_atoms(self):
self.lmp.command("boundary f p m")