accelerInt
v0.1
|
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 |
void cvode::cleanup_solver | ( | int | num_threads | ) |
Cleans up the created solvers.
num_threads | The number of OpenMP threads used |
Frees and cleans up allocated CVODE memory.
Definition at line 165 of file cvodes_init.c.
void cvode::init_solver_log | ( | ) |
Definition at line 190 of file cvodes_init.c.
void cvode::initialize_solver | ( | int | num_threads | ) |
Initializes the solver.
num_threads | The 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.
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.
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.
[in] | NUM | the number of IVPs to solve |
[in] | t | the current IVP time |
[in] | t_end | the time to integrate the IVP to |
[in] | pr_global | the pressure value for the IVPs |
[in,out] | y_global | the state vectors |
The integration driver for the CVODEs solver
Definition at line 39 of file solver_cvodes.c.
void cvode::solver_log | ( | ) |
Definition at line 192 of file cvodes_init.c.
char * cvode::solver_name | ( | ) |
Returns a descriptive solver name.
Definition at line 181 of file cvodes_init.c.
void** cvode::integrators |
The stored CVODE integrator objects
Definition at line 34 of file cvodes_init.c.
double* cvode::y_local_vectors |
The base state vectors used in N_Vector creation
Definition at line 32 of file cvodes_init.c.
N_Vector* cvode::y_locals |
The state vectors used in CVODE operation
Definition at line 30 of file cvodes_init.c.