Contour lines close along the border

Add a "cliff edge" to force contour lines to close along the border.