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

« back to all changes in this revision

Viewing changes to tests/flredecomp_2d_fieldweighted/flredecomp_2d_fieldweighted.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:
 
1
<?xml version='1.0' encoding='utf-8'?>
 
2
<testproblem>
 
3
  <name>flredecomp-2d-fieldweighted</name>
 
4
  <owner userid="rhodrid"/>
 
5
  <tags>flml</tags>
 
6
 
 
7
  <problem_definition length="medium" nprocs="1">
 
8
    <command_line>mpiexec -n 16 flredecomp -i 1 -o 16 flredecomp-2d-fieldweighted Parallel-NP16-flredecomp-2d-fieldweighted</command_line>
 
9
  </problem_definition>
 
10
 
 
11
  <variables>
 
12
    <variable name="max_load_imbalance" language="python">
 
13
from check_partitions import *
 
14
max_load_imbalance = calculate_partition_weights()
 
15
      <comment>Calculates the weight of each partition (i.e. sums weights of elements in each partition). The weights are prescribed in the flml to be 1.0 for region 27, and 0.005 elsewhere.</comment>
 
16
    </variable>
 
17
  </variables>
 
18
 
 
19
  <pass_tests>
 
20
    <test name="maximum load imbalance .lt. 1.5 " language="python">
 
21
      assert ( max_load_imbalance &lt; 1.5 )
 
22
    </test>
 
23
  </pass_tests>
 
24
 
 
25
</testproblem>