CAMP 1.0.0
Chemistry Across Multiple Phases
Jacobian.c File Reference

Jacobian functions. More...

Include dependency graph for Jacobian.c:

Go to the source code of this file.

Macros

#define BUFFER_SIZE   10
 
#define SMALL_NUMBER   1e-90
 

Functions

int jacobian_initialize_empty (Jacobian *jac, unsigned int num_spec)
 
int jacobian_initialize (Jacobian *jac, unsigned int num_spec, unsigned int **jac_struct)
 
int jacobian_column_elements_add_space (JacobianColumnElements *column)
 
void jacobian_register_element (Jacobian *jac, unsigned int dep_id, unsigned int ind_id)
 
int compare_ids (const void *a, const void *b)
 
unsigned int jacobian_build_matrix (Jacobian *jac)
 
unsigned int jacobian_number_of_elements (Jacobian jac)
 
unsigned int jacobian_column_pointer_value (Jacobian jac, unsigned int col_id)
 
unsigned int jacobian_row_index (Jacobian jac, unsigned int elem_id)
 
unsigned int jacobian_get_element_id (Jacobian jac, unsigned int dep_id, unsigned int ind_id)
 
void jacobian_reset (Jacobian jac)
 
void jacobian_output (Jacobian jac, double *dest_array)
 
void jacobian_add_value (Jacobian jac, unsigned int elem_id, unsigned int prod_or_loss, long double jac_contribution)
 
void jacobian_print (Jacobian jac)
 
void jacobian_column_elements_free (JacobianColumnElements *column)
 
void jacobian_free (Jacobian *jac)
 

Detailed Description

Jacobian functions.

Definition in file Jacobian.c.

Macro Definition Documentation

◆ BUFFER_SIZE

#define BUFFER_SIZE   10

Definition at line 17 of file Jacobian.c.

◆ SMALL_NUMBER

#define SMALL_NUMBER   1e-90

Definition at line 18 of file Jacobian.c.

Function Documentation

◆ compare_ids()

int compare_ids ( const void * a,
const void * b )

Definition at line 125 of file Jacobian.c.

Here is the caller graph for this function:

◆ jacobian_add_value()

void jacobian_add_value ( Jacobian jac,
unsigned int elem_id,
unsigned int prod_or_loss,
long double jac_contribution )

Definition at line 234 of file Jacobian.c.

Here is the caller graph for this function:

◆ jacobian_build_matrix()

unsigned int jacobian_build_matrix ( Jacobian * jac)

Definition at line 129 of file Jacobian.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ jacobian_column_elements_add_space()

int jacobian_column_elements_add_space ( JacobianColumnElements * column)

Definition at line 92 of file Jacobian.c.

Here is the caller graph for this function:

◆ jacobian_column_elements_free()

void jacobian_column_elements_free ( JacobianColumnElements * column)

Definition at line 274 of file Jacobian.c.

Here is the caller graph for this function:

◆ jacobian_column_pointer_value()

unsigned int jacobian_column_pointer_value ( Jacobian jac,
unsigned int col_id )

Definition at line 192 of file Jacobian.c.

Here is the caller graph for this function:

◆ jacobian_free()

void jacobian_free ( Jacobian * jac)

Definition at line 281 of file Jacobian.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ jacobian_get_element_id()

unsigned int jacobian_get_element_id ( Jacobian jac,
unsigned int dep_id,
unsigned int ind_id )

Definition at line 200 of file Jacobian.c.

Here is the caller graph for this function:

◆ jacobian_initialize()

int jacobian_initialize ( Jacobian * jac,
unsigned int num_spec,
unsigned int ** jac_struct )

Definition at line 46 of file Jacobian.c.

◆ jacobian_initialize_empty()

int jacobian_initialize_empty ( Jacobian * jac,
unsigned int num_spec )

Definition at line 20 of file Jacobian.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ jacobian_number_of_elements()

unsigned int jacobian_number_of_elements ( Jacobian jac)

Definition at line 190 of file Jacobian.c.

Here is the caller graph for this function:

◆ jacobian_output()

void jacobian_output ( Jacobian jac,
double * dest_array )

Definition at line 223 of file Jacobian.c.

Here is the caller graph for this function:

◆ jacobian_print()

void jacobian_print ( Jacobian jac)

Definition at line 243 of file Jacobian.c.

◆ jacobian_register_element()

void jacobian_register_element ( Jacobian * jac,
unsigned int dep_id,
unsigned int ind_id )

Definition at line 105 of file Jacobian.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ jacobian_reset()

void jacobian_reset ( Jacobian jac)

Definition at line 216 of file Jacobian.c.

Here is the caller graph for this function:

◆ jacobian_row_index()

unsigned int jacobian_row_index ( Jacobian jac,
unsigned int elem_id )

Definition at line 196 of file Jacobian.c.

Here is the caller graph for this function: