Multigrid code. The two soldiers at the ends of the line are fixed.