Element 'mode boundary extension algorithm'