Skip to content

Commit

Permalink
Additional test with switched order of instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbbeyer committed Aug 16, 2024
1 parent 44b3feb commit 15c8046
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions testsuite/python/lb_lees_edwards.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,13 @@ def test_lebc_mismatch(self):
tau=system.time_step)
self.assertIsNone(system.lb)

# no thermalization (switched order of instantiation)
with self.assertRaisesRegex(RuntimeError, "Lees-Edwards LB doesn't support thermalization"):
with LBContextManager(kT=1., seed=42) as lbf:
LEContextManager('x', 'y', 1.)
self.assertIsNone(system.lb)


with self.assertRaisesRegex(ValueError, "Lees-Edwards sweep is implemented for a ghost layer of thickness 1"):
lattice = espressomd.lb.LatticeWalberla(agrid=1., n_ghost_layers=2)
with LEContextManager('x', 'y', 1.):
Expand Down

0 comments on commit 15c8046

Please sign in to comment.