Choral
Functions/Subroutines
ode_Lin_0d.f90 File Reference

Go to the source code of this file.

Functions/Subroutines

program ode_lin_0d
  EXAMPLE FOR THE RESOLUTION OF: \( dy/ dt = y \) More...
 
subroutine id (yy, xx)
 
subroutine id_m (yy, xx)
 
subroutine user_defined_output (tn, s, stop)
 

Function/Subroutine Documentation

◆ id()

subroutine ode_lin_0d::id ( real(rp), dimension(:), intent(out)  yy,
real(rp), dimension(:), intent(in)  xx 
)

Definition at line 146 of file ode_Lin_0d.f90.

◆ id_m()

subroutine ode_lin_0d::id_m ( real(rp), dimension(:), intent(out)  yy,
real(rp), dimension(:), intent(in)  xx 
)

Definition at line 154 of file ode_Lin_0d.f90.

◆ ode_lin_0d()

program ode_lin_0d ( )

EXAMPLE FOR THE RESOLUTION OF: \( dy/ dt = y \)

General linear ode_problem have the form

\(~~~ M dV/ dt = -S V \)

Settings:

  • \( M = id\) the identity
  • \( S = -id\)
  • \( V \) of size 1 ( \( V \in \R \))

Method:

  • one step solver for linear ODEs

Output: two successive resolutions with two different outputs

  1. user defined output using the routine "user_defined_output"
  2. pre-defined output using the type ode_output
    plot of the solution with gnuplot.

Charles PIERRE

Definition at line 26 of file ode_Lin_0d.f90.

Here is the call graph for this function:

◆ user_defined_output()

subroutine ode_lin_0d::user_defined_output ( real(rp), intent(in)  tn,
type(ode_solution), intent(in)  s,
logical, intent(inout)  stop 
)

Definition at line 162 of file ode_Lin_0d.f90.