~fluidity-core/fluidity/sea-ice-branch

« back to all changes in this revision

Viewing changes to examples/tephra_settling/tephra_settling.xml

  • Committer: Simon Mouradian
  • Date: 2012-10-19 10:35:59 UTC
  • mfrom: (3520.32.371 fluidity)
  • Revision ID: simon.mouradian06@imperial.ac.uk-20121019103559-y36qa47phc69q8sc
mergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
s = stat_parser("tephra_settling.stat")
21
21
tephra_u_max=s["Tephra"]["Velocity%magnitude"]["max"]
22
22
    </variable>
 
23
    
23
24
    <variable name="time" language="python">
24
25
from fluidity_tools import stat_parser
25
26
s = stat_parser("tephra_settling.stat")
26
27
time=s["ElapsedTime"]["value"]
27
28
    </variable>
 
29
    
 
30
    <variable name="solvers_converged" language="python">
 
31
import os
 
32
files = os.listdir("./")
 
33
solvers_converged = not "matrixdump" in files and not "matrixdump.info" in files
 
34
    </variable>
28
35
  </variables>
29
36
    
30
37
  <pass_tests>
42
49
      assert max(tephra_u_max[t:]) &lt; 0.05
43
50
      break
44
51
    </test>
 
52
    
 
53
    <test name="Solvers converged" language="python">
 
54
assert(solvers_converged)
 
55
    </test>
45
56
  </pass_tests>
46
57
  
47
58
  <warn_tests>