~fluidity-core/fluidity/sediment_restructure

« back to all changes in this revision

Viewing changes to tests/tidal_channel_2d/tidal_channel_2d.xml

merge with branch including remap_surface_to_field but then removed this change and approached it a different way which seems to work

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="UTF-8" ?>
2
 
 
3
 
<testproblem>
4
 
  <name>Channel forced on one side with periodic tide and closed other end.</name>
5
 
  <owner userid="cwilson"/>
6
 
  <tags>flml</tags>
7
 
  <problem_definition length="special" nprocs="1">
8
 
    <command_line>dfluidity -v3 -l  channel.flml</command_line>
9
 
  </problem_definition>
10
 
  <variables>
11
 
    <variable name="l2norm_error" language="python">
12
 
# l2-norm error with analytical solution
13
 
import fluidity_tools
14
 
s=fluidity_tools.stat_parser('channel.stat')
15
 
area=1e6
16
 
l2norm_error=s['water']['ScalarAbsoluteDifference']['l2norm'][-100:].sum()/area
17
 
    </variable>
18
 
    <variable name="infnorm_error" language="python">
19
 
# l2-norm error with analytical solution
20
 
import fluidity_tools
21
 
s=fluidity_tools.stat_parser('channel.stat')
22
 
infnorm_error=s['water']['ScalarAbsoluteDifference']['max'][-100:].max()
23
 
    </variable>
24
 
  </variables>
25
 
  <pass_tests>
26
 
    <test name="l2norm_error smaller than 1e-3" language="python">
27
 
assert(l2norm_error &lt; 1e-3)
28
 
    </test>
29
 
    <test name="infnorm_error smaller than 0.2" language="python">
30
 
assert(infnorm_error &lt; 0.2)
31
 
    </test>
32
 
  </pass_tests>
33
 
  <warn_tests>
34
 
  </warn_tests>
35
 
</testproblem>