Hi guys,

I'm passing through your very nice tutorial and have encountered the following problem in Step 4. It is claimed (and seems to be) that step-4 is a truly dimension independent code to solve Poisson equation. But If I set dim=1 then I get a very strange solution which does not even satisfy boundary values and is not symmetric around x=0.

In 1D the step-4 equation is: -u'' = 4 x^4, u(-1) = u(1) = 1. Its solution must be: u(x) = -4/30 x^6 + 68/60.

What is wrong with dim=1 in step-4 code?

Thanks!

Ivan

_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to