timer_obj_StepForward Subroutine

private impure subroutine timer_obj_StepForward(this)

Moves timer from n to n+1

Type Bound

timer_obj

Arguments

Type IntentOptional Attributes Name
class(timer_obj), intent(inout) :: this

Timer


Called by

proc~~timer_obj_stepforward~~CalledByGraph proc~timer_obj_stepforward timer_obj%timer_obj_StepForward program~main main program~main->proc~timer_obj_stepforward

Source Code

    impure subroutine timer_obj_StepForward(this)
      !> Moves timer from n to n+1
      implicit none
      class(timer_obj), intent(inout) :: this                                  !! Timer

      ! Get time at beginning of this iteration
      this%itertime = this%parallel%Time()
      this%lasttime = this%itertime
      ! Update time
      this%time = this%time + this%dt
      ! Update iteration count
      this%iter = this%iter + 1
      ! Zero timing info
      if (allocated(this%timing)) this%timing = 0.0_wp

      return
    end subroutine timer_obj_StepForward