~amcg-stokes/fluidity/block-velocity-nns

« back to all changes in this revision

Viewing changes to tests/Stokes_may_solky_exponential/Stokes_may_solky_exponential.xml

  • Committer: Rhodri Davies
  • Date: 2014-05-29 00:14:40 UTC
  • mfrom: (3854.1.473 fluidity)
  • Revision ID: rhodri.davies@imperial.ac.uk-20140529001440-0lx74o0djriitwbn
MergeĀ inĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8" ?>
 
2
<testproblem>
 
3
  <name>Stokes-may-exponential</name>
 
4
  <owner userid="rhodrid"/>
 
5
  <tags>flml petsc33</tags>
 
6
  <problem_definition length="medium" nprocs="1">
 
7
    <command_line>fluidity -v2 -l Stokes-may-solky-exponential-gamg.flml; mv fluidity.log-0 log_gamg; fluidity -v2 -l Stokes-may-solky-exponential-fs.flml; mv fluidity.log-0 log_fs; fluidity -v2 -l Stokes-may-solky-exponential-mg.flml; mv fluidity.log-0 log_mg; fluidity -v2 -l Stokes-may-solky-exponential-sor.flml; mv fluidity.log-0 log_sor</command_line>
 
8
  </problem_definition>
 
9
 
 
10
<variables>  
 
11
 
 
12
<variable name="solvers_converged" language="python">
 
13
import os
 
14
files = os.listdir("./")
 
15
solvers_converged = not "matrixdump" in files and not "matrixdump.info" in files
 
16
</variable>
 
17
 
 
18
<variable name="DeltaU_iterations_GAMG" language="python">
 
19
from check_iterations import *
 
20
DeltaU_iterations_GAMG = check_velocity_iterations('log_gamg')
 
21
</variable>
 
22
 
 
23
<variable name="DeltaU_iterations_FS" language="python">
 
24
from check_iterations import *
 
25
DeltaU_iterations_FS = check_velocity_iterations('log_fs')
 
26
</variable>
 
27
 
 
28
<variable name="DeltaU_iterations_MG" language="python">
 
29
from check_iterations import *
 
30
DeltaU_iterations_MG = check_velocity_iterations('log_mg')
 
31
</variable>
 
32
 
 
33
<variable name="DeltaU_iterations_SOR" language="python">
 
34
from check_iterations import *
 
35
DeltaU_iterations_SOR = check_velocity_iterations('log_sor')
 
36
</variable>
 
37
 
 
38
</variables>
 
39
 
 
40
<pass_tests>
 
41
 
 
42
<test name="Solvers converged" language="python">
 
43
assert(solvers_converged)
 
44
</test>
 
45
 
 
46
<test name="GAMG solver behaving as expected" language="python">
 
47
assert(DeltaU_iterations_GAMG &lt; 40)
 
48
</test>
 
49
 
 
50
<test name="Fieldsplit solver behaving as expected" language="python">
 
51
assert(abs(DeltaU_iterations_FS - 8) &lt; 2)
 
52
</test>
 
53
 
 
54
<test name="MG solver behaving as expected" language="python">
 
55
assert(abs(DeltaU_iterations_MG - 120) &lt; 2)
 
56
</test>
 
57
 
 
58
<test name="SOR solver behaving as expected" language="python">
 
59
assert(abs(DeltaU_iterations_SOR - 151) &lt; 2)
 
60
</test>
 
61
 
 
62
</pass_tests>
 
63
                                                                                                                                                                              
 
64
<warn_tests>
 
65
</warn_tests>
 
66
 
 
67
</testproblem>
 
68
 
 
69
 
 
70
 
 
71
 
 
72