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

« back to all changes in this revision

Viewing changes to tests/backward_facing_step_2d_zoltan_sam/backward_facing_step_2d_zoltan_sam.xml

  • Committer: Simon Mouradian
  • Date: 2012-03-30 11:11:47 UTC
  • mfrom: (3520.32.239 fluidity)
  • Revision ID: simon.mouradian06@imperial.ac.uk-20120330111147-y4n4y4th52x2dqcf
mergeĀ fromĀ lp:fluidity

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
     On the same machine the first two tests should be nearly exact. Because buildbot is not the machine
41
41
     where the Sam tests were run, the output might well be a bit different. Therefore using % error even on the
42
42
     time check. We don't want a red buildbot, do we?
 
43
 
 
44
     BIG NOTE: I have loosened these tolerences a lot as Precise and Natty give different behaviour. Once
 
45
     we drop Natty support, they can be tigthened back to 2%, 5% and 5% respectively
43
46
-->
44
 
      <test name="Final time within 2.0%" language="python">
 
47
      <test name="Final time within 10.0%" language="python">
45
48
Err = (abs(FinalTime-FinalTimeSam) / FinalTimeSam) *100
46
49
print Err
47
 
assert (Err &lt; 2.0)
 
50
assert (Err &lt; 10.0)
48
51
    </test>    
49
 
    <test name="Max velocity within 5%" language="python">
 
52
    <test name="Max velocity within 10%" language="python">
50
53
Err = (abs(MaximumVelocity-MaximumVelocitySam) / MaximumVelocitySam) *100
51
54
print Err
52
 
assert (Err &lt; 5)
 
55
assert (Err &lt; 10.)
53
56
    </test>
54
57
    <test name="Node count within 12%" language="python">
55
58
nodeCountErr = (abs(FinalNodeCount-FinalNodeCountSam) / FinalNodeCountSam) *100