accelerInt  v0.1
Macros | Functions
fd_jacob.c File Reference

Finite Difference Jacobian implementation based on CVODEs. More...

#include "header.h"
#include "dydt.h"
#include <math.h>
#include <float.h>
#include <string.h>
#include "solver_options.h"
Include dependency graph for fd_jacob.c:

Go to the source code of this file.

Macros

#define FD_ORD   1
 The finite difference order [Default: 1]. More...
 

Functions

void eval_jacob (const double t, const double pres, const double *cy, double *jac)
 Computes a finite difference Jacobian of order FD_ORD of the RHS function dydt at the given pressure and state. More...
 

Detailed Description

Finite Difference Jacobian implementation based on CVODEs.

Definition in file fd_jacob.c.

Macro Definition Documentation

◆ FD_ORD

#define FD_ORD   1

The finite difference order [Default: 1].

Definition at line 14 of file fd_jacob.c.

Function Documentation

◆ eval_jacob()

void eval_jacob ( const double  t,
const double  pres,
const double *  cy,
double *  jac 
)

Computes a finite difference Jacobian of order FD_ORD of the RHS function dydt at the given pressure and state.

Parameters
[in]tthe current system time
[in]presthe current system pressure
[in]cythe system state vector
[out]jacthe resulting Jacobian

Definition at line 24 of file fd_jacob.c.