Add the 'after_main_loop' hook.
Make it easy to change how C_D and C_L are recorded in
square_cylinder_2d.