Here are the MATLAB files accompanying the manuscript
S. Güttel and J. W. Pearson, A rational deferred correction approach to PDE-constrained optimization, 2016:
Download here