11void Screen_print_CSR(
int *indptr,
int *cols,
double *vals,
int nrow);
15void split_CSR_mat_vec_mult(
double *Ax,
int *indptr_diag,
int *cols_diag,
double *vals_diag,
16 int *indptr_off_diag,
int *cols_off_diag,
double *vals_off_diag,
17 double *x,
int nrows,
int *ghosts,
int nghost);
23 int *indptr_off_diag,
int *cols_off_diag,
double *vals_off_diag,
double *b,
24 double *scale_vect,
int local_size,
int size,
int rank,
25 int *ghosts,
int nghost
32int prep_umfpack(
int *indptr_diag,
int *cols_diag,
double *vals_diag,
int nrow);
33int solve_umfpack(
double *x,
int *indptr_diag,
int *cols_diag,
double *vals_diag,
double *b,
int nrow);
46void scale_linear_system(
int *indptr_diag,
int *cols_diag,
double *vals_diag,
47 int *indptr_off_diag,
int *cols_off_diag,
double *vals_off_diag,
double *b,
48 double *x,
double *scale_vect,
int local_size,
int size,
int rank,
int *ghosts,
int nghost);
49void unscale_linear_system(
double *x,
double *x0,
double *scale_vect,
int local_size);
void umfpack_clear(void)
Short helper function that clears umfpack structures.
Definition: bcgstab_solver.c:331
int prep_umfpack(int *indptr_diag, int *cols_diag, double *vals_diag, int nrow)
Function that pre-factors matrix, used for preconditioner, modifies the static Symbolic and Numeric s...
Definition: bcgstab_solver.c:353
int solve_linear_sys_bcgstab(double *x, int *indptr_diag, int *cols_diag, double *vals_diag, int *indptr_off_diag, int *cols_off_diag, double *vals_off_diag, double *b, double *scale_vect, int local_size, int size, int rank, int *ghosts, int nghost)
Solves a system of already scaled equations in split CSR format using bcgstab this is also assuming t...
Definition: bcgstab_solver.c:65
int solve_umfpack(double *x, int *indptr_diag, int *cols_diag, double *vals_diag, double *b, int nrow)
Function that solves system Ax=b using umfpack, provided A is in CSR format.
Definition: bcgstab_solver.c:397
void free_bcgstab(void)
Frees all data structures allocate within this file.
Definition: bcgstab_solver.c:417
Definition: smodel_super.h:7