~fluidity-core/fluidity/excise-fldecomp

« back to all changes in this revision

Viewing changes to tests/lagrange_tracer_lowcourant/lagrange_tracer_lowcourant.xml

  • Committer: Mark Filipiak
  • Date: 2012-08-13 11:42:30 UTC
  • mfrom: (4003.1.23 dev-trunk)
  • Revision ID: mjf@staffmail.ed.ac.uk-20120813114230-wzoyf2gi4p4oxeh4
Merge in of the latest trunk.  To try to cure non-flredecomp tests that are passing at EPCC but failing in buildbot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
    <command_line>fluidity -v2 -l lagrange_tracer.flml</command_line>
7
7
  </problem_definition>
8
8
  <variables>
 
9
    <variable name="solvers_converged" language="python">
 
10
import os
 
11
files = os.listdir("./")
 
12
solvers_converged = not "matrixdump" in files and not "matrixdump.info" in files
 
13
    </variable>
9
14
    <variable name="detector_locx_0" language="python">from fluidity_tools import stat_parser as stat
10
15
detector_locx_0 = stat("lagrange_tracer.detectors")["DummyArray_1"]["position"][0][-1]</variable>
11
16
    <variable name="detector_locy_0" language="python">from fluidity_tools import stat_parser as stat
14
19
detected_field_value = stat("lagrange_tracer.detectors")["Dummy"]["Field"]["DummyArray_1"][-1]</variable>
15
20
  </variables>
16
21
  <pass_tests>
 
22
    <test name="Solvers converged" language="python">
 
23
      assert(solvers_converged)
 
24
    </test>
17
25
    <test name="correct_x" language="python">print "detector should be at "+str(2./3.-0.1/3.)+", actually at "+str(detector_locx_0)
18
26
assert(abs(detector_locx_0-(2./3.-0.1/3.)) &lt; 1.e-9)</test>
19
27
    <test name="correct_y" language="python">print "detector should be at "+str(1./3.+0.1/3.)+", actually at "+str(detector_locy_0)