The main documentation of the SUM_Real_Scalar Procedure contains additional explanation of this code listing.
function SUM_Real_Scalar (R) ! Input variable. type(real), intent(in) :: R ! Output variable. type(real) :: SUM_Real_Scalar !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ! SUM_Real_Scalar is equal to R. SUM_Real_Scalar = R return end function SUM_Real_Scalar