Fast Auxiliary Space Preconditioning  1.8.4 Feb/15/2016
init.c File Reference

Initialize important data structures. More...

#include "fasp.h"
#include "fasp_functs.h"

Go to the source code of this file.

Functions

void fasp_precond_data_null (precond_data *pcdata)
 Initialize precond_data. More...
 
AMG_datafasp_amg_data_create (SHORT max_levels)
 Create and initialize AMG_data for classical and SA AMG. More...
 
AMG_data_bsrfasp_amg_data_bsr_create (SHORT max_levels)
 Create and initialize AMG_data data sturcture for AMG/SAMG (BSR format) More...
 
void fasp_ilu_data_alloc (const INT iwk, const INT nwork, ILU_data *iludata)
 Allocate workspace for ILU factorization. More...
 
void fasp_Schwarz_data_free (Schwarz_data *Schwarz)
 Free Schwarz_data data memeory space. More...
 
void fasp_amg_data_free (AMG_data *mgl, AMG_param *param)
 Free AMG_data data memeory space. More...
 
void fasp_amg_data_bsr_free (AMG_data_bsr *mgl)
 Free AMG_data_bsr data memeory space. More...
 
void fasp_ilu_data_free (ILU_data *ILUdata)
 Create ILU_data sturcture. More...
 
void fasp_ilu_data_null (ILU_data *ILUdata)
 Initialize ILU data. More...
 
void fasp_precond_null (precond *pcdata)
 Initialize precond data. More...
 

Detailed Description

Initialize important data structures.

Note
Every structures should be initialized before usage.

Definition in file init.c.

Function Documentation

AMG_data_bsr * fasp_amg_data_bsr_create ( SHORT  max_levels)

Create and initialize AMG_data data sturcture for AMG/SAMG (BSR format)

Parameters
max_levelsMax number of levels allowed
Returns
Pointer to the AMG_data data structure
Author
Xiaozhe Hu
Date
08/07/2011

Definition at line 86 of file init.c.

void fasp_amg_data_bsr_free ( AMG_data_bsr mgl)

Free AMG_data_bsr data memeory space.

Parameters
mglPointer to the AMG_data_bsr
Author
Xiaozhe Hu
Date
2013/02/13

Definition at line 256 of file init.c.

AMG_data * fasp_amg_data_create ( SHORT  max_levels)

Create and initialize AMG_data for classical and SA AMG.

Parameters
max_levelsMax number of levels allowed
Returns
Pointer to the AMG_data data structure
Author
Chensong Zhang
Date
2010/04/06

Definition at line 56 of file init.c.

void fasp_amg_data_free ( AMG_data mgl,
AMG_param param 
)

Free AMG_data data memeory space.

Parameters
mglPointer to the AMG_data
paramPointer to AMG parameters
Author
Chensong Zhang
Date
2010/04/06

Modified by Chensong Zhang on 05/05/2013: Clean up param as well! Modified by Hongxuan Zhang on 12/15/2015: free internal memory for Intel MKL PARDISO.

Definition at line 185 of file init.c.

void fasp_ilu_data_alloc ( const INT  iwk,
const INT  nwork,
ILU_data iludata 
)

Allocate workspace for ILU factorization.

Parameters
iwkSize of the index array
nworkSize of the work array
iludataPointer to the ILU_data
Author
Chensong Zhang
Date
2010/04/06

Definition at line 118 of file init.c.

void fasp_ilu_data_free ( ILU_data ILUdata)

Create ILU_data sturcture.

Parameters
ILUdataPointer to ILU_data
Author
Chensong Zhang
Date
2010/04/03

Definition at line 300 of file init.c.

void fasp_ilu_data_null ( ILU_data ILUdata)

Initialize ILU data.

Parameters
ILUdataPointer to ILU_data
Author
Chensong Zhang
Date
2010/03/23

Definition at line 321 of file init.c.

void fasp_precond_data_null ( precond_data pcdata)

Initialize precond_data.

Parameters
pcdataPreconditioning data structure
Author
Chensong Zhang
Date
2010/03/23

Definition at line 25 of file init.c.

void fasp_precond_null ( precond pcdata)

Initialize precond data.

Parameters
pcdataPointer to precond
Author
Chensong Zhang
Date
2010/03/23

Definition at line 337 of file init.c.

void fasp_Schwarz_data_free ( Schwarz_data Schwarz)

Free Schwarz_data data memeory space.

Parameters
*Schwarzpointer to the AMG_data data
Author
Xiaozhe Hu
Date
2010/04/06

Definition at line 147 of file init.c.