accelerInt
v0.1
|
Functions | |
int | integrate (const double t_start, const double t_end, const double pr, double *y) |
4th-order exponential integrator function w/ adaptive Kyrlov subspace approximation More... | |
void | init_solver_log () |
Initializes the Krylov subspace logging files (if LOG_OUTPUT is defined) More... | |
void | solver_log () |
Executes solver specific logging tasks. More... | |
void | initialize_solver (int num_threads) |
Initializes the solver. More... | |
const char * | solver_name () |
Returns a descriptive solver name. More... | |
void | cleanup_solver (int num_threads) |
Cleans up the created solvers. More... | |
void | check_error (int tid, int code) |
Checks the return code of the given thread (IVP) for an error, and exits if found. More... | |
Include common code.
void exprb43::check_error | ( | int | tid, |
int | code | ||
) |
Checks the return code of the given thread (IVP) for an error, and exits if found.
tid | The thread (IVP) index |
code | The return code of the thread |
Definition at line 22 of file exprb43_props.c.
void exprb43::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.
num_threads | The number of OpenMP threads used |
Frees and cleans up allocated RK78 memory.
Definition at line 62 of file exprb43_init.c.
exprb43::init_solver_log | ( | ) |
Initializes the Krylov subspace logging files (if LOG_OUTPUT is defined)
Initializes solver specific items for logging.
Definition at line 21 of file exprb43_init.c.
void exprb43::initialize_solver | ( | int | num_threads | ) |
int exprb43::integrate | ( | const double | t_start, |
const double | t_end, | ||
const double | pr, | ||
double * | y | ||
) |
4th-order exponential integrator function w/ adaptive Kyrlov subspace approximation
A header definition of the integrate method, that must be implemented by various solvers.
t_start | The initial integration time |
t_end | The final integration timestep |
pr | User data passed to the RHS function dydt() - commonly used for the Pressure term |
y | The state vector |
void exprb43::solver_log | ( | ) |
Executes solver specific logging tasks.
Logs errors, step-sizes, and krylov subspace size (if LOG_OUTPUT is defined)
Definition at line 42 of file exprb43_init.c.
char * exprb43::solver_name | ( | ) |
Returns a descriptive solver name.
Definition at line 57 of file exprb43_init.c.