petsc-3.8.4 2018-03-24
Report Typos and Errors

TSForwardSetRHSJacobianP

Sets the function that computes the Jacobian of G w.r.t. the parameters p where y_t = G(y,p,t), as well as the location to store the vector array.

Synopsis

#include "petscts.h"  
PetscErrorCode  TSForwardSetRHSJacobianP(TS ts,Vec* a,PetscErrorCode (*func)(TS,PetscReal,Vec,Vec*,void*),void *ctx)
Logically Collective on TS

Input Parameters

ts - The TS context obtained from TSCreate()
func - The function

Calling sequence of func

func (TS ts,PetscReal t,Vec y,Vec* a,void *ctx);
t - current timestep
y - input vector (current ODE solution)
a - output vector array
ctx - [optional] user-defined function context

Notes: the number of vectors in a is the same as the number of parameters and each vector is of the same size as the system dimension.

Keywords

TS, forward sensitivity

See Also

TSForwardSetSensitivities(), TSForwardGetSensitivities(), TSForwardSetIntegralGradients(), TSForwardGetIntegralGradients(), TSForwardStep()

Level:intermediate
Location:
src/ts/interface/tsfwdsen.c
Index of all TS routines
Table of Contents for all manual pages
Index of all manual pages