~fluidity-core/fluidity/darcy_weak_bcs

« back to all changes in this revision

Viewing changes to tests/tidal_channel/tidal_channel.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:
8
8
    <command_line>fluidity -v3 -l  channel.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="l2norm_error" language="python">
12
17
# l2-norm error with analytical solution
13
18
import fluidity_tools
23
28
    </variable>
24
29
  </variables>
25
30
  <pass_tests>
 
31
    <test name="Solvers converged" language="python">
 
32
      assert(solvers_converged)
 
33
    </test>
26
34
    <test name="l2norm_error smaller than 1e-3" language="python">
27
35
assert(l2norm_error &lt; 1e-3)
28
36
    </test>