Skip to content

Commit

Permalink
testsuite: dpd: Script momentum conservation check for dpd + langevin
Browse files Browse the repository at this point in the history
  • Loading branch information
fweik committed Dec 5, 2019
1 parent 4d8b68b commit 05daf01
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions testsuite/python/dpd.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def check_total_zero(self):

def single(self, with_langevin=False):
"""Test velocity distribution of a dpd fluid with a single type."""
N = 250
N = 500
s = self.s
s.part.add(pos=s.box_l * np.random.random((N, 3)))
kT = 2.3
Expand All @@ -95,7 +95,9 @@ def single(self, with_langevin=False):
error_tol = 0.01
self.check_velocity_distribution(
v_stored, v_minmax, bins, error_tol, kT)
self.check_total_zero()

if not with_langevin:
self.check_total_zero()

def test_single(self):
self.single()
Expand Down

0 comments on commit 05daf01

Please sign in to comment.