CAMP 1.0.0
Chemistry Across Multiple Phases
Macros | Functions | Variables
camp_debug.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAX_FILE_NAME   256
 
#define N_OUTPUT_STATES   100
 
#define CAMP_DEBUG_PRINT(x)
 
#define CAMP_DEBUG_PRINT_INT(x, y)
 
#define CAMP_DEBUG_PRINT_FULL(x)
 
#define CAMP_DEBUG_JAC_STRUCT(J, x)
 
#define CAMP_DEBUG_JAC(J, x)
 

Functions

static void print_data_sizes (ModelData *md)
 Print some camp-chem data sizes.
 
static void print_jacobian (SUNMatrix M)
 Print Jacobian matrix in format KLU SPARSE.
 
static void print_derivative (N_Vector deriv)
 Print derivative array.
 
void output_deriv_local_state (realtype curr_time, N_Vector state, N_Vector deriv, void *solver_data, int(*f)(realtype, N_Vector, N_Vector, void *), int i_dep, int i_ind, double d_rate_d_ind, double d_ind)
 Evaluate the derivative and Jacobian near a given state for a specified species.
 

Variables

int file_name_prefix = 1
 

Macro Definition Documentation

◆ CAMP_DEBUG_JAC

#define CAMP_DEBUG_JAC (   J,
 
)

Definition at line 125 of file camp_debug.h.

◆ CAMP_DEBUG_JAC_STRUCT

#define CAMP_DEBUG_JAC_STRUCT (   J,
 
)

Definition at line 124 of file camp_debug.h.

◆ CAMP_DEBUG_PRINT

#define CAMP_DEBUG_PRINT (   x)

Definition at line 121 of file camp_debug.h.

◆ CAMP_DEBUG_PRINT_FULL

#define CAMP_DEBUG_PRINT_FULL (   x)

Definition at line 123 of file camp_debug.h.

◆ CAMP_DEBUG_PRINT_INT

#define CAMP_DEBUG_PRINT_INT (   x,
 
)

Definition at line 122 of file camp_debug.h.

◆ MAX_FILE_NAME

#define MAX_FILE_NAME   256

Definition at line 15 of file camp_debug.h.

◆ N_OUTPUT_STATES

#define N_OUTPUT_STATES   100

Definition at line 18 of file camp_debug.h.

Function Documentation

◆ output_deriv_local_state()

void output_deriv_local_state ( realtype  curr_time,
N_Vector  state,
N_Vector  deriv,
void *  solver_data,
int(*)(realtype, N_Vector, N_Vector, void *)  f,
int  i_dep,
int  i_ind,
double  d_rate_d_ind,
double  d_ind 
)

Evaluate the derivative and Jacobian near a given state for a specified species.

Parameters
curr_timeCurrent time
stateState array
derivDerivative array
solver_dataVoid pointer to solver data
fPointer to derivative function
i_depDependent species index
i_indIndependent species index
d_rate_d_indChange in rate for dependent species with change in independent species
d_indIncrement to use in plot of rate_dep vs conc_ind

Definition at line 184 of file camp_debug.h.

Here is the call graph for this function:

◆ print_data_sizes()

static void print_data_sizes ( ModelData md)
static

Print some camp-chem data sizes.

Parameters
mdPointer to the model data

Definition at line 132 of file camp_debug.h.

Here is the caller graph for this function:

◆ print_derivative()

static void print_derivative ( N_Vector  deriv)
static

Print derivative array.

Parameters
derivDerivative array

Definition at line 162 of file camp_debug.h.

◆ print_jacobian()

static void print_jacobian ( SUNMatrix  M)
static

Print Jacobian matrix in format KLU SPARSE.

Parameters
MJacobian matrix

Definition at line 145 of file camp_debug.h.

Variable Documentation

◆ file_name_prefix

int file_name_prefix = 1

Definition at line 12 of file camp_debug.h.