~fluidity-core/fluidity/darcy_weak_bcs

« back to all changes in this revision

Viewing changes to tests/moving_seiche/moving_seiche.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  Seiche_coarse.flml &gt; /dev/null 2&gt;&amp;1</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="maxspeed" language="python">
12
17
import fluidity_tools
13
18
maxspeed =max(fluidity_tools.stat_parser("Seiche_Coarse.stat")['StratifiedFluid']['Velocity%magnitude']['max'])
14
19
    </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="l2norm(speed) at last timestep" language="python">
18
26
assert abs(maxspeed) &lt; 0.50
19
27
    </test>