~fluidity-core/fluidity/excise-fldecomp

« back to all changes in this revision

Viewing changes to tests/diagnostic_time_averaged_scalar/diagnostic_time_averaged_scalar.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:
8
8
    <command_line>fluidity time_averaged_scalar.flml </command_line>
9
9
  </problem_definition>
10
10
  <variables>
 
11
    <variable name="solvers_converged" language="python">
 
12
import os
 
13
files = os.listdir("./")
 
14
solvers_converged = not "matrixdump" in files and not "matrixdump.info" in files
 
15
    </variable>
11
16
    <variable name="FinalDailyAveragedVal" language="python">
12
17
from fluidity_tools import stat_parser
13
18
s = stat_parser("time_average_scalar.stat")
20
25
  </variable>
21
26
  </variables>
22
27
  <pass_tests>
 
28
    <test name="Solvers converged" language="python">
 
29
      assert(solvers_converged)
 
30
    </test>
23
31
    <test name="Final daily averaged value is correct" language="python">
24
32
assert abs(FinalDailyAveragedVal-100.0) &lt; 1e-5
25
33
    </test>