~fluidity-core/fluidity/darcy_weak_bcs

« back to all changes in this revision

Viewing changes to tests/sinking_velocity/sinking_velocity.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
    <!-- Check that the sinking velocity term works. -->
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="detritus_initial" language="python">
13
18
from fluidity_tools import stat_parser
14
19
s = stat_parser("sinking_velocity.stat")
26
31
    </variable>
27
32
  </variables>
28
33
  <pass_tests>
 
34
    <test name="Solvers converged" language="python">
 
35
      assert(solvers_converged)
 
36
    </test>
29
37
    <test name="Detritus is conserved" language="python">
30
38
import fluidity_tools
31
39
fluidity_tools.compare_variable(detritus_final, detritus_initial, 1.0e-8)