Added Dirichlet and Neumann boundary conditions for LOD for nonlinear problems.