Multigrid (MG) methods belong to the best known algorithms for solving some class of PDEs.This code gives a MATLAB implementation of 1D Multigrid algorithm for solving a two-point ODE boundary value problem. Compared with existing online codes, my code tries to balance well between efficiency and readability (simplicity) for practical and wide use.
More online codes:
- TIM’S 1-D MULTIGRID CODES (http://www4.ncsu.edu/~ctk/house_798k/codes/codes-1D/mg1d.pdf)
- John Burkardt’s collection (https://people.sc.fsu.edu/~jburkardt/m_src/multigrid_poisson_1d/multigrid_poisson_1d.html)