~amcg-stokes/fluidity/multimaterial_diagnostic_dependencies

« back to all changes in this revision

Viewing changes to tests/viscous_fs_simpletopbottom/viscous_fs_simpletopbottom.xml

  • Committer: Cian Wilson
  • Date: 2012-12-10 20:21:07 UTC
  • mfrom: (4132.1.7 fluidity)
  • Revision ID: cwilson@ldeo.columbia.edu-20121210202107-5wppwqcba4bfd1r3
Merging in changes from lp:fluidity.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version='1.0' encoding='utf-8'?>
 
2
<testproblem>
 
3
  <name>viscous_fs_simpletopbottom</name>
 
4
  <owner userid="cwilson"/>
 
5
  <tags>flml</tags>
 
6
  <problem_definition length="medium" nprocs="1">
 
7
    <command_line>fluidity -v2 -l viscous_fs_simpletopbottom_E.flml; fluidity -v2 -l viscous_fs_simpletopbottom_F.flml; fluidity -v2 -l viscous_fs_simpletopbottom_G.flml; fluidity -v2 -l viscous_fs_simpletopbottom_H.flml; fluidity -v2 -l viscous_fs_simpletopbottom_I.flml</command_line>
 
8
  </problem_definition>
 
9
  <variables>
 
10
    <variable name="finish_time_e" language="python">from fluidity_tools import stat_parser as stat
 
11
 
 
12
file1 = "viscous_fs_simpletopbottom_E.stat"
 
13
 
 
14
finish_time_e = stat(file1)["ElapsedTime"]["value"][-1]</variable>
 
15
    <variable name="ef_convergence_fs" language="python">import calculate_order_simpletopbottom as calculate_order
 
16
 
 
17
file1 = "viscous_fs_simpletopbottom_E.stat"
 
18
file2 = "viscous_fs_simpletopbottom_F.stat"
 
19
 
 
20
ef_convergence_fs = calculate_order.report_convergence(file1, file2)</variable>
 
21
    <variable name="finish_time_f" language="python">from fluidity_tools import stat_parser as stat
 
22
 
 
23
file1 = "viscous_fs_simpletopbottom_F.stat"
 
24
 
 
25
finish_time_f = stat(file1)["ElapsedTime"]["value"][-1]</variable>
 
26
    <variable name="fg_convergence_fs" language="python">import calculate_order_simpletopbottom as calculate_order
 
27
 
 
28
file1 = "viscous_fs_simpletopbottom_F.stat"
 
29
file2 = "viscous_fs_simpletopbottom_G.stat"
 
30
 
 
31
fg_convergence_fs = calculate_order.report_convergence(file1, file2)</variable>
 
32
    <variable name="finish_time_g" language="python">from fluidity_tools import stat_parser as stat
 
33
 
 
34
file1 = "viscous_fs_simpletopbottom_G.stat"
 
35
 
 
36
finish_time_g = stat(file1)["ElapsedTime"]["value"][-1]</variable>
 
37
    <variable name="gh_convergence_fs" language="python">import calculate_order_simpletopbottom as calculate_order
 
38
 
 
39
file1 = "viscous_fs_simpletopbottom_G.stat"
 
40
file2 = "viscous_fs_simpletopbottom_H.stat"
 
41
 
 
42
gh_convergence_fs = calculate_order.report_convergence(file1, file2)</variable>
 
43
    <variable name="finish_time_h" language="python">from fluidity_tools import stat_parser as stat
 
44
 
 
45
file1 = "viscous_fs_simpletopbottom_H.stat"
 
46
 
 
47
finish_time_h = stat(file1)["ElapsedTime"]["value"][-1]</variable>
 
48
    <variable name="hi_convergence_fs" language="python">import calculate_order_simpletopbottom as calculate_order
 
49
 
 
50
file1 = "viscous_fs_simpletopbottom_H.stat"
 
51
file2 = "viscous_fs_simpletopbottom_I.stat"
 
52
 
 
53
hi_convergence_fs = calculate_order.report_convergence(file1, file2)</variable>
 
54
    <variable name="finish_time_i" language="python">from fluidity_tools import stat_parser as stat
 
55
 
 
56
file1 = "viscous_fs_simpletopbottom_I.stat"
 
57
 
 
58
finish_time_i = stat(file1)["ElapsedTime"]["value"][-1]</variable>
 
59
  </variables>
 
60
  <pass_tests>
 
61
    <test name="efinish" language="python">assert(abs(finish_time_e-4.0)&lt;2.0)</test>
 
62
    <test name="ffinish" language="python">assert(abs(finish_time_f-4.0)&lt;1.0)</test>
 
63
    <test name="gfinish" language="python">assert(abs(finish_time_g-4.0)&lt;0.5)</test>
 
64
    <test name="hfinish" language="python">assert(abs(finish_time_h-4.0)&lt;0.25)</test>
 
65
    <test name="ifinish" language="python">assert(abs(finish_time_i-4.0)&lt;0.125)</test>
 
66
    <test name="eftop" language="python">assert(ef_convergence_fs[0]&gt;1.6)</test>
 
67
    <test name="fgtop" language="python">assert(fg_convergence_fs[0]&gt;1.9)</test>
 
68
    <test name="ghtop" language="python">assert(gh_convergence_fs[0]&gt;2.0)</test>
 
69
    <test name="hitop" language="python">assert(hi_convergence_fs[0]&gt;1.8)</test>
 
70
    <test name="efbot" language="python">assert(ef_convergence_fs[1]&gt;1.6)</test>
 
71
    <test name="fgbot" language="python">assert(fg_convergence_fs[1]&gt;1.9)</test>
 
72
    <test name="ghbot" language="python">assert(gh_convergence_fs[1]&gt;2.0)</test>
 
73
    <test name="hibot" language="python">assert(hi_convergence_fs[1]&gt;1.8)</test>
 
74
  </pass_tests>
 
75
</testproblem>