19#include "fasp_functs.h"
53 REAL FMG_start = 0, FMG_end;
56 printf(
"###DEBUG: %s ...... [begin]\n", __FUNCTION__);
57 printf(
"###DEBUG: nr=%d, nc=%d, nnz=%d\n", m, n, nnz);
108 printf(
"### DEBUG: [--End--] %s ...\n", __FUNCTION__);
void fasp_cputime(const char *message, const REAL cputime)
Print CPU walltime.
void fasp_gettime(REAL *time)
Get system time.
dvector fasp_dvec_create(const INT m)
Create dvector data space of REAL type.
void fasp_dvec_cp(const dvector *x, dvector *y)
Copy dvector x to dvector y.
dCSRmat fasp_dcsr_create(const INT m, const INT n, const INT nnz)
Create CSR sparse matrix data memory space.
void fasp_dcsr_cp(const dCSRmat *A, dCSRmat *B)
copy a dCSRmat to a new one B=A
void fasp_check_dCSRmat(const dCSRmat *A)
Check whether an dCSRmat matrix is supported or not.
SHORT fasp_amg_setup_rs(AMG_data *mgl, AMG_param *param)
Setup phase of Ruge and Stuben's classic AMG.
SHORT fasp_amg_setup_sa(AMG_data *mgl, AMG_param *param)
Set up phase of smoothed aggregation AMG.
SHORT fasp_amg_setup_ua(AMG_data *mgl, AMG_param *param)
Set up phase of unsmoothed aggregation AMG.
AMG_data * fasp_amg_data_create(SHORT max_levels)
Create and initialize AMG_data for classical and SA AMG.
void fasp_amg_data_free(AMG_data *mgl, AMG_param *param)
Free AMG_data data memeory space.
void fasp_famg_solve(AMG_data *mgl, AMG_param *param)
FMG – SOLVE phase.
void fasp_solver_famg(const dCSRmat *A, const dvector *b, dvector *x, AMG_param *param)
Solve Ax=b by full AMG.
Main header file for the FASP project.
#define SHORT
FASP integer and floating point numbers.
#define PRINT_NONE
Print level for all subroutines – not including DEBUG output.
dCSRmat A
pointer to the matrix at level level_num
dvector b
pointer to the right-hand side at level level_num
dvector x
pointer to the iterative solution at level level_num
Parameters for AMG methods.
SHORT print_level
print level for AMG
SHORT AMG_type
type of AMG method
SHORT max_levels
max number of levels of AMG
Sparse matrix of REAL type in CSR format.
INT col
column of matrix A, n
INT row
row number of matrix A, m
INT nnz
number of nonzero entries
Vector with n entries of REAL type.