~fluidity-core/fluidity/darcy_weak_bcs

« back to all changes in this revision

Viewing changes to tests/binary_detectors/binary_detectors.xml

  • Committer: Brendan Tollit
  • Date: 2012-07-23 11:40:43 UTC
  • mfrom: (3961.1.54 fluidity)
  • Revision ID: brendan.tollit05@imperial.ac.uk-20120723114043-gsmawvbm7zvso564
merge trunk into branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
    <!-- Test that detectors work the new way. -->
10
10
  </problem_definition>
11
11
  <variables>
 
12
    <variable name="solvers_converged" language="python">
 
13
import os
 
14
files = os.listdir("./")
 
15
solvers_converged = not "matrixdump" in files and not "matrixdump.info" in files
 
16
    </variable>
12
17
    <variable name="detector" language="python">
13
18
from fluidity_tools import stat_parser
14
19
detector = stat_parser("detectors.detectors")
15
20
    </variable>
16
21
  </variables>
17
22
  <pass_tests>
 
23
    <test name="Solvers converged" language="python">
 
24
      assert(solvers_converged)
 
25
    </test>
18
26
    <test name="tracer at D1" language="python">
19
27
assert abs(detector['Water']['Tracer']['D1'] - 0.0) &lt; 1e-12
20
28
    </test>