Someone else says
"There's nothing wrong with the initial and boundary conditions in the question. Like how you can set the boundary to be u(t,0)=u(t,L)=0 while setting the initial condition to be u(0,x)=1, you don't have to have the initial condition satisfy the boundary conditions."
Is this correct, or in correct?