Skip to content
Permalink
Browse files

Test: lb_inteprolation: Clarify error print out in mach check

  • Loading branch information
RudolfWeeber committed Mar 26, 2020
1 parent e6838d8 commit ed8e5b1be616c09e4bf1f79b4b95aaa7f7a618ae
Showing with 7 additions and 0 deletions.
  1. +7 −0 testsuite/python/lb_interpolation.py
@@ -18,6 +18,7 @@
import unittest_decorators as utx
import numpy as np
import itertools
import sys

import espressomd
import espressomd.shapes
@@ -108,9 +109,15 @@ def test_mach_limit_check(self):
"""
max_vel = 0.31 * AGRID / TAU
print("Begin: Test error generation")
sys.stdout.flush()
sys.stderr.flush()
with self.assertRaises(Exception):
self.set_boundaries([0.0, 0.0, max_vel])
self.system.integrator.run(1)
sys.stdout.flush()
sys.stderr.flush()
print("End: Test error generation")


@utx.skipIfMissingFeatures(['LB_BOUNDARIES'])

0 comments on commit ed8e5b1

Please sign in to comment.
You can’t perform that action at this time.