Time derivative function of integrand class, i.e. the residuals function. Fast mode acting directly on self.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(integrand_oscillation), | intent(inout) | :: | self | Oscillation field. |
||
real(kind=R_P), | intent(in), | optional | :: | t | Time. |
subroutine t_fast(self, t)
!< Time derivative function of integrand class, i.e. the residuals function. Fast mode acting directly on self.
class(integrand_oscillation), intent(inout) :: self !< Oscillation field.
real(R_P), intent(in), optional :: t !< Time.
real(R_P) :: buffer !< Temporary buffer.
buffer = self%U(1)
self%U(1) = - self%f * self%U(2)
self%U(2) = self%f * buffer
endsubroutine t_fast