~fluidity-core/fluidity/excise-fldecomp

« back to all changes in this revision

Viewing changes to tests/electrochemical_p1p1_2d/electrochemical_p1p1_2d.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:
9
9
    <!-- Calculate potential from simple salinity gradient. -->
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="electrical_potential" language="python">
13
18
import vtktools
14
19
v = vtktools.vtu("electrochemical_1.vtu")
16
21
    </variable>
17
22
  </variables>
18
23
    <pass_tests>
 
24
      <test name="Solvers converged" language="python">
 
25
        assert(solvers_converged)
 
26
      </test>
19
27
    <test name="electrical potential range correct." language="python">
20
28
assert abs(electrical_potential[0] + 1.0e-1) &lt; 1.0e-3
21
29
assert abs(electrical_potential[1]) &lt; 1.0e-5