accelerInt  v0.1
Functions
exprb43 Namespace Reference

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...
 

Detailed Description

Include common code.

Function Documentation

◆ check_error()

void exprb43::check_error ( int  tid,
int  code 
)

Checks the return code of the given thread (IVP) for an error, and exits if found.

Parameters
tidThe thread (IVP) index
codeThe return code of the thread
See also
Return codes of Integrators

Definition at line 22 of file exprb43_props.c.

◆ cleanup_solver()

void exprb43::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.

Parameters
num_threadsThe number of OpenMP threads used

Frees and cleans up allocated RK78 memory.

Definition at line 62 of file exprb43_init.c.

◆ init_solver_log()

exprb43::init_solver_log ( )

Initializes the Krylov subspace logging files (if LOG_OUTPUT is defined)

Initializes solver specific items for logging.

See also
solver_options.cuh

Definition at line 21 of file exprb43_init.c.

◆ initialize_solver()

void exprb43::initialize_solver ( int  num_threads)

Initializes the solver.

Parameters
num_threadsUnused

Definition at line 48 of file exprb43_init.c.

◆ integrate()

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.

Parameters
t_startThe initial integration time
t_endThe final integration timestep
prUser data passed to the RHS function dydt() - commonly used for the Pressure term
yThe state vector
Returns
The result of this integration step
See also
Return codes of EXPRB43 integrator

Definition at line 47 of file exprb43.c.

◆ solver_log()

void exprb43::solver_log ( )

Executes solver specific logging tasks.

Logs errors, step-sizes, and krylov subspace size (if LOG_OUTPUT is defined)

See also
solver_options.cuh

Definition at line 42 of file exprb43_init.c.

◆ solver_name()

char * exprb43::solver_name ( )

Returns a descriptive solver name.

Definition at line 57 of file exprb43_init.c.