OP2/PyOP2 — pull request #118 by gmarkall (2012-12-03 12:26:19+00:00)
Title: More regression tests

Add regression tests for the other FFC demos. Options to save the output of these demos was added, and the regression tests compare the output with a reference.

There were a couple of other fixes added in order to support this:

- fixes in generate_mesh and the test harness
- At some point a while ago we discovered that the wrong maps were being used in the Weak BCs demo, so checking of maps and API tests is added for this.
- Since the solver is always CG by default with PETSc4py, GMRES needed to be specified for Laplace and Weak BCs because they assemble non-symmetric systems.
- The CUDA backend didn't always prepend `__device__` in the right place because it always assumed the user kernel was the first function in the code. Pycparser is now used to instrument all functions in the code.
- In mass2d_triangle, the initial condition was not smooth, so it has been replaced with a smooth one.