![]() |
Fast Auxiliary Space Preconditioning 2.7.7 Aug/28/2022
|
Initialize important data structures. More...
Go to the source code of this file.
Functions | |
void | fasp_precond_data_init (precond_data *pcdata) |
Initialize precond_data. More... | |
AMG_data * | fasp_amg_data_create (SHORT max_levels) |
Create and initialize AMG_data for classical and SA AMG. More... | |
void | fasp_amg_data_free (AMG_data *mgl, AMG_param *param) |
Free AMG_data data memeory space. More... | |
void | fasp_amg_data_free1 (AMG_data *mgl, AMG_param *param) |
Free AMG_data data memeory space. More... | |
AMG_data_bsr * | fasp_amg_data_bsr_create (SHORT max_levels) |
Create and initialize AMG_data data sturcture for AMG/SAMG (BSR format) More... | |
void | fasp_amg_data_bsr_free (AMG_data_bsr *mgl, AMG_param *param) |
void | fasp_ilu_data_create (const INT iwk, const INT nwork, ILU_data *iludata) |
Allocate workspace for ILU factorization. More... | |
void | fasp_ilu_data_free (ILU_data *iludata) |
Create ILU_data sturcture. More... | |
void | fasp_swz_data_free (SWZ_data *swzdata) |
Free SWZ_data data memeory space. More... | |
Initialize important data structures.
Copyright (C) 2009–Present by the FASP team. All rights reserved.
Definition in file PreDataInit.c.
AMG_data_bsr * fasp_amg_data_bsr_create | ( | SHORT | max_levels | ) |
Create and initialize AMG_data data sturcture for AMG/SAMG (BSR format)
max_levels | Max number of levels allowed |
Definition at line 283 of file PreDataInit.c.
void fasp_amg_data_bsr_free | ( | AMG_data_bsr * | mgl, |
AMG_param * | param | ||
) |
Definition at line 316 of file PreDataInit.c.
Create and initialize AMG_data for classical and SA AMG.
max_levels | Max number of levels allowed |
Definition at line 64 of file PreDataInit.c.
Free AMG_data data memeory space.
mgl | Pointer to the AMG_data |
param | Pointer to AMG parameters |
Modified by Chensong Zhang on 05/05/2013: Clean up param as well! Modified by Hongxuan Zhang on 12/15/2015: Free memory for Intel MKL PARDISO Modified by Chunsheng Feng on 02/12/2017: Permute A back to its origin for ILUtp Modified by Chunsheng Feng on 08/11/2017: Check for max_levels == 1
Definition at line 101 of file PreDataInit.c.
Free AMG_data data memeory space.
mgl | Pointer to the AMG_data |
param | Pointer to AMG parameters |
Modified by Chensong Zhang on 05/05/2013: Clean up param as well! Modified by Hongxuan Zhang on 12/15/2015: Free memory for Intel MKL PARDISO Modified by Chunsheng Feng on 02/12/2017: Permute A back to its origin for ILUtp Modified by Chunsheng Feng on 08/11/2017: Check for max_levels == 1
The difference with "fasp_amg_data_free1" is that matrix mgl[i].A does not belong to itself and cannot be destroyed here. Li Zhao, 05/20/2023
Definition at line 195 of file PreDataInit.c.
Allocate workspace for ILU factorization.
iwk | Size of the index array |
nwork | Size of the work array |
iludata | Pointer to the ILU_data |
Modified by Chunsheng Feng on 02/12/2017: add iperm array for ILUtp
Definition at line 411 of file PreDataInit.c.
void fasp_ilu_data_free | ( | ILU_data * | iludata | ) |
Create ILU_data sturcture.
iludata | Pointer to ILU_data |
Modified by Chunsheng Feng on 02/12/2017: add iperm array for ILUtp
Definition at line 445 of file PreDataInit.c.
void fasp_precond_data_init | ( | precond_data * | pcdata | ) |
Initialize precond_data.
pcdata | Preconditioning data structure |
Definition at line 33 of file PreDataInit.c.
void fasp_swz_data_free | ( | SWZ_data * | swzdata | ) |
Free SWZ_data data memeory space.
swzdata | Pointer to the SWZ_data for Schwarz methods |
Definition at line 494 of file PreDataInit.c.