Module tl_ad_tensor

Tangent Linear (TL) and Adjoint (AD) model versions of MAOOAM.

Local Functions

jacobian (ystar) Compute the Jacobian of MAOOAM in point ystar.
get_tltensor (aotensor_tab) Compute the TL tensor from the original MAOOAM one
adtensor_tab_ref (tltensor_tab) Compute the AD tensor from the TL tensor (method 1)
get_adtensor (aotensor_tab) Compute the AD tensor from the original MAOOAM one (method 2)
model (t, y, buf) Tendencies for MAOOAM.
tl_traj (t, ystar, deltay, buf) Tendencies for the TL of MAOOAM in point ystar for perturbation deltay.
get_tl (ystar) Get a function that computes the tendencies for the TL of MAOOAM in point ystar in a form that can be integrated (same function signature as model)
ad_traj (t, ystar, deltay, buf) Tendencies for the adjoint of MAOOAM in point ystar for perturbation deltay.
get_ad (ystar) Get a function that computes the tendencies for the adjoint of MAOOAM in point ystar in a form that can be integrated (same function signature as model)


Local Functions

jacobian (ystar)
Compute the Jacobian of MAOOAM in point ystar.

Parameters:

  • ystar array with variables in which the jacobian should be evaluated.

Returns:

    Jacobian in coolist-form (table of tuples {i,j,value})
get_tltensor (aotensor_tab)
Compute the TL tensor from the original MAOOAM one

Parameters:

  • aotensor_tab model tensor coolist (table form)

Returns:

    tangent linear model tensor (table form)
adtensor_tab_ref (tltensor_tab)
Compute the AD tensor from the TL tensor (method 1)

Parameters:

  • tltensor_tab model TL tensor coolist (not yet in fficoo form).

Returns:

    adjoint model tensor (table form)
get_adtensor (aotensor_tab)
Compute the AD tensor from the original MAOOAM one (method 2)

Parameters:

  • aotensor_tab model tensor coolist (not yet in fficoo form).

Returns:

    adjoint model tensor (table form)
model (t, y, buf)
Tendencies for MAOOAM.

Parameters:

  • t time
  • y array with variables at time t
  • buf n-array (buffer) to store derivatives.
tl_traj (t, ystar, deltay, buf)
Tendencies for the TL of MAOOAM in point ystar for perturbation deltay.

Parameters:

  • t time
  • ystar array with the variables (current point in trajectory)
  • deltay array with the perturbation of the variables at time t
  • buf n-array (buffer) to store derivatives.
get_tl (ystar)
Get a function that computes the tendencies for the TL of MAOOAM in point ystar in a form that can be integrated (same function signature as model)

Parameters:

  • ystar array with the variables (current point in trajectory)

Returns:

    function that computes the tendencies for the TL of MAOOAM in point ystar.
ad_traj (t, ystar, deltay, buf)
Tendencies for the adjoint of MAOOAM in point ystar for perturbation deltay.

Parameters:

  • t time
  • ystar array with the variables (current point in trajectory)
  • deltay array with the perturbation of the variables at time t
  • buf n-array (buffer) to store derivatives.
get_ad (ystar)
Get a function that computes the tendencies for the adjoint of MAOOAM in point ystar in a form that can be integrated (same function signature as model)

Parameters:

  • ystar array with the variables (current point in trajectory)

Returns:

    function that computes the tendencies for the adjoint of MAOOAM in point ystar.
generated by LDoc Last updated 2017-01-05 15:53:41