accelerInt  v0.1
Functions
cvodes_jac.h File Reference

A simple wrapper, allowing for use of the analytical jacobian w/ CVODES. More...

#include "header.h"
#include "sundials/sundials_nvector.h"
#include "sundials/sundials_direct.h"
#include "nvector/nvector_serial.h"
#include "jacob.h"
Include dependency graph for cvodes_jac.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int eval_jacob_cvodes (long int N, double t, N_Vector y, N_Vector ydot, DlsMat Jac, void *f, N_Vector tmp1, N_Vector tmp2, N_Vector tmp3)
 The CVODEs Jacobian interface for a direct dense Jacobian. More...
 

Detailed Description

A simple wrapper, allowing for use of the analytical jacobian w/ CVODES.

Definition in file cvodes_jac.h.

Function Documentation

◆ eval_jacob_cvodes()

int eval_jacob_cvodes ( long int  N,
double  t,
N_Vector  y,
N_Vector  ydot,
DlsMat  jac,
void *  f,
N_Vector  tmp1,
N_Vector  tmp2,
N_Vector  tmp3 
)

The CVODEs Jacobian interface for a direct dense Jacobian.

Parameters
Nthe problem size
tThe current time of the system
yThe current state vector (in CVODE format)
ydotThe RHS vector to be populated (in CVODE format)
jacThe Jacobian matrix (in CVODE format) to output to
fUser data set during CVODEs setup (e.g. the system pressure)
tmp1Temporary storage used by CVODEs
tmp2Temporary storage used by CVODEs
tmp3Temporary storage used by CVODEs
Returns
cvode_return_code The CVODE output constant returned (see sec B.2 of CVODE documentation), currently always returns CV_SUCCESS

This function converts the N_Vectors y and y_dot to simple double pointers, the user data f to a double and outputs the Jacobian supplied by eval_jacob to the CVODE jacobian jac Currently, CV_SUCCESS is always returned.

Definition at line 13 of file cvodes_jac.c.