numerical boundary conditions