Loading web-font TeX/Math/Italic
LALInspiral 5.0.3.1-ea7c608
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
LALRungeKutta4.c File Reference

NONE. More...

Prototypes

static int derivativeGSLWrapper (REAL8 t, const REAL8 y[], REAL8 dydx[], void *params)
 
rk4GSLIntegratorXLALRungeKutta4Init (INT4 n, rk4In *input)
 
void LALRungeKutta4 (LALStatus *status, REAL8Vector *yout, rk4GSLIntegrator *integrator, void *params)
 
int XLALRungeKutta4 (REAL8Vector *yout, rk4GSLIntegrator *integrator, void *params)
 
void XLALRungeKutta4Free (rk4GSLIntegrator *integrator)
 
static int derivativeGSLWrapper (REAL8 UNUSED t, const REAL8 y[], REAL8 dydx[], void *params)
 

Detailed Description

NONE.

Author
Robinson, C. A.

Prototypes

LALRungeKutta4()

  • n: The number of coupled equations being integrated.
  • yout: The output values for the system after the time-step.
  • input: The input for the system
  • integrator Required for the GSL integratior. Created using XLALRungeKutta4Init().
  • params Parameters to be passed to the derivative function

Description

The code LALRungeKutta4.c solves a system of n coupled first–order differential equations. Internally, it uses the gsl routines for performing adaptive step evolution of the system, but to the outside user, it returns results for a fixed step size.

Prior to evolving a system using LALRungeKutta4(), it is necessary to create the GSL integrator using XLALRungeKutta4Init(). Once the evolution of the system has finished, this integrator should then be freed using XLALRungeKutta4Free().

Algorithm

Uses

None.

Notes

Definition in file LALRungeKutta4.c.

Go to the source code of this file.

Data Structures

struct  RungeGSLParams
 

Function Documentation

◆ derivativeGSLWrapper() [1/2]

static int derivativeGSLWrapper ( REAL8  t,
const REAL8  y[],
REAL8  dydx[],
void *  params 
)
static

◆ XLALRungeKutta4Init()

rk4GSLIntegrator * XLALRungeKutta4Init ( INT4  n,
rk4In input 
)

Definition at line 81 of file LALRungeKutta4.c.

◆ LALRungeKutta4()

void LALRungeKutta4 ( LALStatus status,
REAL8Vector yout,
rk4GSLIntegrator integrator,
void *  params 
)

Definition at line 127 of file LALRungeKutta4.c.

◆ XLALRungeKutta4()

int XLALRungeKutta4 ( REAL8Vector yout,
rk4GSLIntegrator integrator,
void *  params 
)

Definition at line 147 of file LALRungeKutta4.c.

◆ XLALRungeKutta4Free()

void XLALRungeKutta4Free ( rk4GSLIntegrator integrator)

Definition at line 228 of file LALRungeKutta4.c.

◆ derivativeGSLWrapper() [2/2]

static int derivativeGSLWrapper ( REAL8 UNUSED  t,
const REAL8  y[],
REAL8  dydx[],
void *  params 
)
static

Definition at line 246 of file LALRungeKutta4.c.