~fluidity-core/fluidity/excise-fldecomp

« back to all changes in this revision

Viewing changes to tests/gls-Kato_Phillips-mixed_layer_depth/gls-Kato_Phillips-mixed_layer_depth.xml

  • Committer: Mark Filipiak
  • Date: 2012-08-13 11:42:30 UTC
  • mfrom: (4003.1.23 dev-trunk)
  • Revision ID: mjf@staffmail.ed.ac.uk-20120813114230-wzoyf2gi4p4oxeh4
Merge in of the latest trunk.  To try to cure non-flredecomp tests that are passing at EPCC but failing in buildbot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
  <tags>flml gls</tags>
7
7
    <problem_definition length="medium" nprocs="1">
8
8
        <command_line>
9
 
            fluidity gls-Kato_Phillips-mixed_layer_depth-k_e-CA.flml
10
 
            fluidity gls-Kato_Phillips-mixed_layer_depth-k_kl-KC94.flml
 
9
            fluidity gls-Kato_Phillips-mixed_layer_depth-gen-GL.flml
 
10
            fluidity gls-Kato_Phillips-mixed_layer_depth-k_w-CB.flml
11
11
        </command_line>
12
12
  </problem_definition>  
13
13
  <variables>  
14
14
 
15
 
    <variable name="FinalTimeKECA" language="python">
16
 
import fluidity_tools
17
 
FinalTimeKECA = fluidity_tools.stat_parser("Kato_Phillips-mld-k_e-CA.stat")['ElapsedTime']['value'][-1]
18
 
    </variable>
19
 
    <variable name="FinalTimeKKLKC" language="python">
20
 
import fluidity_tools
21
 
FinalTimeKKLKC = fluidity_tools.stat_parser("Kato_Phillips-mld-k_kl-KC.stat")['ElapsedTime']['value'][-1]
 
15
    <variable name="FinalTimeGenGL" language="python">
 
16
import fluidity_tools
 
17
FinalTimeGenGL = fluidity_tools.stat_parser("Kato_Phillips-mld-gen-GL.stat")['ElapsedTime']['value'][-1]
 
18
    </variable>    
 
19
    <variable name="FinalTimeKWCB" language="python">
 
20
import fluidity_tools
 
21
FinalTimeKWCB = fluidity_tools.stat_parser("Kato_Phillips-mld-k_w-CB.stat")['ElapsedTime']['value'][-1]
22
22
    </variable>
23
23
 
24
 
    <variable name="KECA_MLD" language="python">
25
 
import sys
26
 
sys.path.append("gls-Kato_Phillips-mixed_layer_depth")
27
 
import mld_calc
28
 
import glob
29
 
filelist = glob.glob("Kato_Phillips-mld-k_e-CA*.vtu")
30
 
mld_calc.sort_nicely(filelist)
31
 
KECA_MLD = mld_calc.MLD(filelist)
32
 
    </variable>
33
 
    <variable name="KKLKC_MLD" language="python">
34
 
import sys
35
 
sys.path.append("gls-Kato_Phillips-mixed_layer_depth")        
36
 
import mld_calc
37
 
import glob
38
 
filelist = glob.glob("Kato_Phillips-mld-k_kl-KC_*.vtu")
39
 
mld_calc.sort_nicely(filelist)
40
 
KKLKC_MLD = mld_calc.MLD(filelist)
41
 
    </variable>
 
24
    <variable name="GenGL_MLD" language="python">
 
25
import sys
 
26
sys.path.append("gls-Kato_Phillips-mixed_layer_depth")
 
27
import mld_calc
 
28
import glob
 
29
filelist = glob.glob("Kato_Phillips-mld-gen-GL_*.vtu")
 
30
mld_calc.sort_nicely(filelist)
 
31
GenGL_MLD = mld_calc.MLD(filelist)
 
32
    </variable>
 
33
    <variable name="KWCB_MLD" language="python">
 
34
import sys
 
35
sys.path.append("gls-Kato_Phillips-mixed_layer_depth")
 
36
import mld_calc
 
37
import glob
 
38
filelist = glob.glob("Kato_Phillips-mld-k_w-CB_*.vtu")
 
39
mld_calc.sort_nicely(filelist)
 
40
KWCB_MLD = mld_calc.MLD(filelist)
 
41
    </variable>    
42
42
 
43
43
  </variables>    
44
44
 
45
45
  <pass_tests> 
46
 
    <test name="Final time equals 10 hours for k-e CA" language="python">
47
 
assert FinalTimeKECA &gt; 17900
 
46
    <test name="Final time equals 10 hours for Gen GL" language="python">
 
47
assert FinalTimeGenGL &gt; 35900
48
48
    </test>
49
 
    <test name="Final time equals 10 hours for k-kl KC" language="python">
50
 
assert FinalTimeKKLKC &gt; 17900
 
49
    <test name="Final time equals 10 hours for k-w CB" language="python">
 
50
assert FinalTimeKWCB &gt; 35900
51
51
    </test>
52
52
 
53
 
    <test name ="MLD for K-E KC vs analytical" language="python">
54
 
from numpy import array, all
55
 
assert (all( abs(array(KECA_MLD[1]) - array(KECA_MLD[2]) ) &lt; 1.5))
56
 
    </test>
57
 
    <test name ="MLD for K-KL vs analytical" language="python">
58
 
from numpy import array, all
59
 
assert (all( abs(array(KKLKC_MLD[1]) - array(KKLKC_MLD[2]) ) &lt; 1.5))
 
53
    <test name ="MLD for Gen GL vs analytical" language="python">
 
54
from numpy import array, all
 
55
assert (all( abs(array(GenGL_MLD[1]) - array(GenGL_MLD[2]) ) &lt; 2.0))
 
56
    </test>   
 
57
    <test name ="MLD for K-W CB vs analytical" language="python">
 
58
from numpy import array, all
 
59
print abs(array(KWCB_MLD[1]) - array(KWCB_MLD[2]) )
 
60
assert (all( abs(array(KWCB_MLD[1]) - array(KWCB_MLD[2]) ) &lt; 2.0))
60
61
    </test>
61
62
 
62
63
  </pass_tests>