Modified mild slope equation and open boundary conditions