tem_time_set_clock Subroutine

public subroutine tem_time_set_clock(me)

Update the clock measurement in the time description.

The clock component in me is updated with the help of MPI_Wtime.

Arguments

Type IntentOptional Attributes Name
type(tem_time_type), intent(inout) :: me

Time setting to update.


Source Code

  subroutine tem_time_set_clock(me)
    ! -------------------------------------------------------------------- !
    !> Time setting to update.
    type(tem_time_type), intent(inout) :: me
    ! -------------------------------------------------------------------- !
    ! -------------------------------------------------------------------- !

    me%clock = MPI_Wtime() - me%clock_start

  end subroutine tem_time_set_clock