I am implementing a program which solves differential equations - 1d diffusion.
I am using the Crank - Nicolson method whose accuracy should be second-order for time and second-order for space.
Unfortunately my results are second-order for time and first-order for space.
How is that possible? Or did I mess up something and is it not possible?
I know f.e. that if it should be second-order and becomes third-order that means that T = Ahp + Bhp+1 and etc.
if Ahp equals 0 then Bhp+1 will become dominant and we have p+1 order of accuracy.
I found one small issue in my code so I am closing the question. Thanks @PierreCarre and @Uranix for your help