Dirichlet and Neumann boundary conditions for HMM for linear problems.