time Function

private recursive function time(self)

The simulation time at the last update (or as last set).

Type Bound

SimulationClock

Arguments

Type IntentOptional Attributes Name
class(SimulationClock), intent(in) :: self

Return Value real(kind=wp)


Source Code

    recursive real(wp) function time(self)
        class(SimulationClock), intent(in) :: self
        if (associated(self%sync)) then
            time = self%sync%time()
        else
            time = self%time_
        end if
    end function time