The codes here were used to generate the examples in Rees, Dollar and Wathen, Optimal solvers for PDE-Constrained Optimization, SIAM J. Sci. Comput., Vol. 32, pp. 271-298, 2010, and my DPhil thesis (Oxford, 2010).
Run via the file setup.m
Default parameters for the problem setup are picked in set_def_setup.m These can be changed to the values given in the file comments.
Default parameters for the solution method are picked in set_def_soln.m The main ones you'll edit are also repeated in setup.m, with options commented alongside them
Tyrone Rees, July 2010