We describe a mesh selection strategy for the numerical solution of boundary value problems for singular ordinary differential equations. This mesh adaptation procedure is implemented in our MATLAB code sbvp which is based on polynomial collocation. We prove that under realistic assumptions our mesh selection strategy serves to approximately equidistribute the global error of the collocation solution, thus enabling to reach prescribed tolerances efficiently. Moreover, we demonstrate that this strategy yields a favorable performance of the code and compare its computational effort with other implementations of polynomial collocation. © 2004 Elsevier B.V. All rights reserved.
Auzinger, W., Koch, O., & Weinmüller, E. (2005). Efficient mesh selection for collocation methods applied to singular BVPs. Journal of Computational and Applied Mathematics, 180(1), 213–227. https://doi.org/10.1016/j.cam.2004.10.013