Application of the Lagrange-mesh method in continuum-discretized coupled-channel calculations. (1st July 2022)