test_ode Program

Uses

  • program~~test_ode~~UsesGraph program~test_ode test_ode module~ode ode program~test_ode->module~ode

Program to test the ode module. The Lorenz chaotic system is solved: The system is integrated for with , and . For initial conditions , the solution is: Image of the trayectory


Calls

program~~test_ode~~CallsGraph program~test_ode test_ode proc~forward_euler forward_euler program~test_ode->proc~forward_euler

Variables

Type Attributes Name Initial
integer, parameter :: N = 1000
real :: Tf
real :: dT
real :: t(0:N)
real :: U(0:N,3)
real :: U0(3)
integer :: i
integer :: file_unit

Functions

function lorenz(U, t) result(dU)

function for defining derivative in the Lorenz system written as: where: and

Arguments

Type IntentOptional Attributes Name
real, intent(in) :: U(:)
real, intent(in) :: t

Return Value real, (size(U))