mixed mode of boundary conditions