<commit_before><?xml version='1.0' encoding='utf-8'?>
<testproblem>
  <name>channel-flow-dg</name>
  <owner userid="avdis01"/>
  <problem_definition length="medium" nprocs="1">
    <command_line>do ./generate_mesh 5; fluidity cdg_cjc.flml; cp cdg.stat cdg-5.stat; cp cdg_1.vtu cdg-5.vtu; do ./generate_mesh 10; fluidity cdg_cjc.flml; cp cdg.stat cdg-10.stat; cp cdg_1.vtu cdg-10.vtu; do ./generate_mesh 20; fluidity cdg_cjc.flml; cp cdg.stat cdg-20.stat; cp cdg_1.vtu cdg-20.vtu; do ./generate_mesh 30; fluidity cdg_cjc.flml; cp cdg.stat cdg-30.stat; cp cdg_1.vtu cdg-30.vtu</command_line>
  </problem_definition>
  <variables>
    <variable name="solvers_converged" language="python">
import os
files = os.listdir("./")
solvers_converged = not "matrixdump" in files and not "matrixdump.info" in files
    </variable>
    <variable name="convergence" language="python">import numpy
from fluidity_tools import stat_parser
layers = numpy.array([5,10,20,30])
dxs=1.0/layers
error=[]
for layer in layers:
        s=stat_parser("cdg-"+`layer`+".stat")
        error.append((s["Stuff"]['AbsoluteDifference']['l2norm'][-1]))

error=numpy.array(error)
convergence=numpy.log(error[:-1]/error[1:])/numpy.log((1.0*layers[1:])/(1.0*layers[:-1]))
print error
    </variable>
  </variables>
  <pass_tests><commit_msg>Removing rogue 'do' statements that were left over in error from the loop unrolling.<commit_after><?xml version='1.0' encoding='utf-8'?>
<testproblem>
  <name>channel-flow-dg</name>
  <owner userid="avdis01"/>
  <problem_definition length="medium" nprocs="1">
    <command_line>./generate_mesh 5; fluidity cdg_cjc.flml; cp cdg.stat cdg-5.stat; cp cdg_1.vtu cdg-5.vtu; ./generate_mesh 10; fluidity cdg_cjc.flml; cp cdg.stat cdg-10.stat; cp cdg_1.vtu cdg-10.vtu; ./generate_mesh 20; fluidity cdg_cjc.flml; cp cdg.stat cdg-20.stat; cp cdg_1.vtu cdg-20.vtu; ./generate_mesh 30; fluidity cdg_cjc.flml; cp cdg.stat cdg-30.stat; cp cdg_1.vtu cdg-30.vtu</command_line>
  </problem_definition>
  <variables>
    <variable name="solvers_converged" language="python">
import os
files = os.listdir("./")
solvers_converged = not "matrixdump" in files and not "matrixdump.info" in files
    </variable>
    <variable name="convergence" language="python">import numpy
from fluidity_tools import stat_parser
layers = numpy.array([5,10,20,30])
dxs=1.0/layers
error=[]
for layer in layers:
        s=stat_parser("cdg-"+`layer`+".stat")
        error.append((s["Stuff"]['AbsoluteDifference']['l2norm'][-1]))

error=numpy.array(error)
convergence=numpy.log(error[:-1]/error[1:])/numpy.log((1.0*layers[1:])/(1.0*layers[:-1]))
print error
    </variable>
  </variables>
  <pass_tests>
{'fraction_non_alphanumeric': 0.1699812382739212, 'fraction_numerical': 0.0375234521575985, 'mean_word_length': 4.911308203991131, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 2, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5837428', 'n_tokens_mistral': 1088, 'n_tokens_neox': 1030, 'n_words': 206}