1
<?xml version="1.0" encoding="UTF-8" ?>
4
<name>Channel forced on one side with periodic tide and closed other end.</name>
5
<owner userid="cwilson"/>
7
<problem_definition length="special" nprocs="1">
8
<command_line>dfluidity -v3 -l channel.flml</command_line>
11
<variable name="l2norm_error" language="python">
12
# l2-norm error with analytical solution
14
s=fluidity_tools.stat_parser('channel.stat')
16
l2norm_error=s['water']['ScalarAbsoluteDifference']['l2norm'][-100:].sum()/area
18
<variable name="infnorm_error" language="python">
19
# l2-norm error with analytical solution
21
s=fluidity_tools.stat_parser('channel.stat')
22
infnorm_error=s['water']['ScalarAbsoluteDifference']['max'][-100:].max()
26
<test name="l2norm_error smaller than 1e-3" language="python">
27
assert(l2norm_error < 1e-3)
29
<test name="infnorm_error smaller than 0.2" language="python">
30
assert(infnorm_error < 0.2)