Integrates spectrum forward in time using a time integration method
provided as the argument func
.
Type | Intent | Optional | Attributes | Name | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
public pure function func(initial, tendency, dt)Arguments
Return Value type(spectrum_type) |
||||||||||||||||||||||||||||||||||
type(spectrum_type), | intent(in) | :: | initial | Initial spectrum instance |
||||||||||||||||||||||||||||||
type(spectrum_type), | intent(in) | :: | tendency | Spectrum tendency instance |
||||||||||||||||||||||||||||||
real(kind=rk), | intent(in) | :: | dt | Time step [s] |
pure type(spectrum_type) function integrate_spectrum(func,initial,tendency,dt)
!! Integrates spectrum forward in time using a time integration method
!! provided as the argument `func`.
interface
pure type(spectrum_type) function func(initial,tendency,dt)
import :: spectrum_type,rk
type(spectrum_type),intent(in) :: initial
type(spectrum_type),intent(in) :: tendency
real(kind=rk),intent(in) :: dt
endfunction func
endinterface
type(spectrum_type),intent(in) :: initial !! Initial spectrum instance
type(spectrum_type),intent(in) :: tendency !! Spectrum tendency instance
real(kind=rk),intent(in) :: dt !! Time step [s]
integrate_spectrum = func(initial,tendency,dt)
endfunction integrate_spectrum