I believe everyone here doesn't know everything. That's it. Recent Entries. Every time the function is called these vectors are allocated and deallocated, which is suboptimal from an efficiency point of view. I've included a main function, which sets up the Thomas Algorithm to solve one time-step of the Crank-Nicolson finite difference method discretised diffusion equation.
nest...