restore_and_increment_time Subroutine

public subroutine restore_and_increment_time(dt)

Routine to restore and increment a backup copy of the time.

Needed for some Runge-Kutta integrators.

Arguments

Type IntentOptional AttributesName
real(kind=wp), intent(in) :: dt

The to use for the increment.


Called by

proc~~restore_and_increment_time~~CalledByGraph proc~restore_and_increment_time restore_and_increment_time proc~rk4_step rk4_step proc~rk4_step->proc~restore_and_increment_time proc~rk5_step rk5_step proc~rk5_step->proc~restore_and_increment_time interface~rk5_step rk5_step interface~rk5_step->proc~rk5_step interface~rk4_step rk4_step interface~rk4_step->proc~rk4_step

Contents


Source Code

  subroutine restore_and_increment_time ( dt )
  !! Routine to restore and increment a backup copy of the time.
  !!
  !! Needed for some Runge-Kutta integrators.

    implicit none

    real(wp), intent(in) :: dt
    !! The \(\Delta t\) to use for the increment.

    time = time_save + dt
    qtime = qtime_save + dt

  end subroutine restore_and_increment_time