accelerInt  v0.1
Functions | Variables
cvode Namespace Reference

Functions

void initialize_solver (int num_threads)
 Initializes the solver. More...
 
void cleanup_solver (int num_threads)
 Cleans up the created solvers. More...
 
const char * solver_name ()
 Returns a descriptive solver name. More...
 
void init_solver_log ()
 
void solver_log ()
 
void intDriver (const int NUM, const double t, const double t_end, const double *pr_global, double *y_global)
 Integration driver for the CPU integrators. More...
 

Variables

N_Vector * y_locals
 
double * y_local_vectors
 
void ** integrators
 

Function Documentation

◆ cleanup_solver()

void cvode::cleanup_solver ( int  num_threads)

Cleans up the created solvers.

Parameters
num_threadsThe number of OpenMP threads used

Frees and cleans up allocated CVODE memory.

Definition at line 165 of file cvodes_init.c.

◆ init_solver_log()

void cvode::init_solver_log ( )

Definition at line 190 of file cvodes_init.c.

◆ initialize_solver()

void cvode::initialize_solver ( int  num_threads)

Initializes the solver.

Parameters
num_threadsThe number of OpenMP threads to use

Various definitions in the generated options, e.g. FINITE_DIFFERENCE, CV_MAX_ERRTEST_FAILS, etc. affect the options set for the CVODEs solver.

See also
solver_options.h

The RHS function dydt_cvodes() will be used in the solver.

If FINITE_DIFFERENCE is not defined, the jacobian function in eval_jacob_cvodes will be used in the CVODE solver. Else, the CVODE finite difference based on the RHS function will be used.

Definition at line 49 of file cvodes_init.c.

◆ intDriver()

void cvode::intDriver ( const int  NUM,
const double  t,
const double  t_end,
const double *  pr_global,
double *  y_global 
)

Integration driver for the CPU integrators.

Parameters
[in]NUMthe number of IVPs to solve
[in]tthe current IVP time
[in]t_endthe time to integrate the IVP to
[in]pr_globalthe pressure value for the IVPs
[in,out]y_globalthe state vectors

The integration driver for the CVODEs solver

Definition at line 39 of file solver_cvodes.c.

◆ solver_log()

void cvode::solver_log ( )

Definition at line 192 of file cvodes_init.c.

◆ solver_name()

char * cvode::solver_name ( )

Returns a descriptive solver name.

Definition at line 181 of file cvodes_init.c.

Variable Documentation

◆ integrators

void** cvode::integrators

The stored CVODE integrator objects

Definition at line 34 of file cvodes_init.c.

◆ y_local_vectors

double* cvode::y_local_vectors

The base state vectors used in N_Vector creation

Definition at line 32 of file cvodes_init.c.

◆ y_locals

N_Vector* cvode::y_locals

The state vectors used in CVODE operation

Definition at line 30 of file cvodes_init.c.