An algorithm and a flexible Fortran code for the computation of solar energy reception on a curved surface. (December 2020)