'Returns the closing statements of the fortran routine.'

def _get_routine_ending(self, routine):

    if (len(routine.results) == 1):
        return ['end    function\n']
    else:
        return ['end    subroutine\n']
