Implemented the boundary conditions of the w2_pres term