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

Initialize, set, or print input data and parameters. More...

#include <stdio.h>
#include "fasp.h"
#include "fasp_functs.h"

Go to the source code of this file.

Functions

void fasp_param_set (int argc, const char *argv[], input_param *iniparam)
 Read input from command-line arguments. More...
 
void fasp_param_init (input_param *iniparam, itsolver_param *itsparam, AMG_param *amgparam, ILU_param *iluparam, Schwarz_param *schparam)
 Initialize parameters, global variables, etc. More...
 
void fasp_param_input_init (input_param *iniparam)
 Initialize input parameters. More...
 
void fasp_param_amg_init (AMG_param *amgparam)
 Initialize AMG parameters. More...
 
void fasp_param_solver_init (itsolver_param *itsparam)
 Initialize itsolver_param. More...
 
void fasp_param_ilu_init (ILU_param *iluparam)
 Initialize ILU parameters. More...
 
void fasp_param_Schwarz_init (Schwarz_param *schparam)
 Initialize Schwarz parameters. More...
 
void fasp_param_amg_set (AMG_param *param, input_param *iniparam)
 Set AMG_param from INPUT. More...
 
void fasp_param_ilu_set (ILU_param *iluparam, input_param *iniparam)
 Set ILU_param with INPUT. More...
 
void fasp_param_Schwarz_set (Schwarz_param *schparam, input_param *iniparam)
 Set Schwarz_param with INPUT. More...
 
void fasp_param_solver_set (itsolver_param *itsparam, input_param *iniparam)
 Set itsolver_param with INPUT. More...
 
void fasp_param_amg_to_prec (precond_data *pcdata, AMG_param *amgparam)
 Set precond_data with AMG_param. More...
 
void fasp_param_prec_to_amg (AMG_param *amgparam, precond_data *pcdata)
 Set AMG_param with precond_data. More...
 
void fasp_param_amg_to_prec_bsr (precond_data_bsr *pcdata, AMG_param *amgparam)
 Set precond_data_bsr with AMG_param. More...
 
void fasp_param_prec_to_amg_bsr (AMG_param *amgparam, precond_data_bsr *pcdata)
 Set AMG_param with precond_data. More...
 
void fasp_param_amg_print (AMG_param *param)
 Print out AMG parameters. More...
 
void fasp_param_ilu_print (ILU_param *param)
 Print out ILU parameters. More...
 
void fasp_param_Schwarz_print (Schwarz_param *param)
 Print out Schwarz parameters. More...
 
void fasp_param_solver_print (itsolver_param *param)
 Print out itsolver parameters. More...
 

Detailed Description

Initialize, set, or print input data and parameters.

Definition in file parameters.c.

Function Documentation

void fasp_param_amg_init ( AMG_param amgparam)

Initialize AMG parameters.

Parameters
amgparamParameters for AMG
Author
Chensong Zhang
Date
2010/04/03

Definition at line 390 of file parameters.c.

void fasp_param_amg_print ( AMG_param param)

Print out AMG parameters.

Parameters
paramParameters for AMG
Author
Chensong Zhang
Date
2010/03/22

Definition at line 797 of file parameters.c.

void fasp_param_amg_set ( AMG_param param,
input_param iniparam 
)

Set AMG_param from INPUT.

Parameters
paramParameters for AMG
iniparamInput parameters
Author
Chensong Zhang
Date
2010/03/23

Definition at line 518 of file parameters.c.

void fasp_param_amg_to_prec ( precond_data pcdata,
AMG_param amgparam 
)

Set precond_data with AMG_param.

Parameters
pcdataPreconditioning data structure
amgparamParameters for AMG
Author
Chensong Zhang
Date
2011/01/10

Definition at line 666 of file parameters.c.

void fasp_param_amg_to_prec_bsr ( precond_data_bsr pcdata,
AMG_param amgparam 
)

Set precond_data_bsr with AMG_param.

Parameters
pcdataPreconditioning data structure
amgparamParameters for AMG
Author
Xiaozhe Hu
Date
02/06/2012

Definition at line 733 of file parameters.c.

void fasp_param_ilu_init ( ILU_param iluparam)

Initialize ILU parameters.

Parameters
iluparamParameters for ILU
Author
Chensong Zhang
Date
2010/04/06

Definition at line 476 of file parameters.c.

void fasp_param_ilu_print ( ILU_param param)

Print out ILU parameters.

Parameters
paramParameters for ILU
Author
Chensong Zhang
Date
2011/12/20

Definition at line 898 of file parameters.c.

void fasp_param_ilu_set ( ILU_param iluparam,
input_param iniparam 
)

Set ILU_param with INPUT.

Parameters
iluparamParameters for ILU
iniparamInput parameters
Author
Chensong Zhang
Date
2010/04/03

Definition at line 593 of file parameters.c.

void fasp_param_init ( input_param iniparam,
itsolver_param itsparam,
AMG_param amgparam,
ILU_param iluparam,
Schwarz_param schparam 
)

Initialize parameters, global variables, etc.

Parameters
iniparamInput parameters
itsparamIterative solver parameters
amgparamAMG parameters
iluparamILU parameters
schparamSchwarz parameters
Author
Chensong Zhang
Date
2010/08/12

Modified by Xiaozhe Hu (01/23/2011): initialize, then set value Modified by Chensong Zhang (09/12/2012): find a bug during debugging in VS08 Modified by Chensong Zhang (12/29/2013): rewritten

Definition at line 270 of file parameters.c.

void fasp_param_input_init ( input_param iniparam)

Initialize input parameters.

Parameters
iniparamInput parameters
Author
Chensong Zhang
Date
2010/03/20

Definition at line 310 of file parameters.c.

void fasp_param_prec_to_amg ( AMG_param amgparam,
precond_data pcdata 
)

Set AMG_param with precond_data.

Parameters
amgparamParameters for AMG
pcdataPreconditioning data structure
Author
Chensong Zhang
Date
2011/01/10

Definition at line 701 of file parameters.c.

void fasp_param_prec_to_amg_bsr ( AMG_param amgparam,
precond_data_bsr pcdata 
)

Set AMG_param with precond_data.

Parameters
amgparamParameters for AMG
pcdataPreconditioning data structure
Author
Xiaozhe Hu
Date
02/06/2012

Definition at line 767 of file parameters.c.

void fasp_param_Schwarz_init ( Schwarz_param schparam)

Initialize Schwarz parameters.

Parameters
schparamParameters for Schwarz method
Author
Xiaozhe Hu
Date
05/22/2012

Modified by Chensong Zhang on 10/10/2014: Add block solver type

Definition at line 498 of file parameters.c.

void fasp_param_Schwarz_print ( Schwarz_param param)

Print out Schwarz parameters.

Parameters
paramParameters for Schwarz
Author
Xiaozhe Hu
Date
05/22/2012

Definition at line 928 of file parameters.c.

void fasp_param_Schwarz_set ( Schwarz_param schparam,
input_param iniparam 
)

Set Schwarz_param with INPUT.

Parameters
schparamParameters for Schwarz method
iniparamInput parameters
Author
Xiaozhe Hu
Date
05/22/2012

Definition at line 615 of file parameters.c.

void fasp_param_set ( int  argc,
const char *  argv[],
input_param iniparam 
)

Read input from command-line arguments.

Parameters
argcNumber of arg input
argvInput arguments
iniparamParameters to be set
Author
Chensong Zhang
Date
12/29/2013

Definition at line 27 of file parameters.c.

void fasp_param_solver_init ( itsolver_param itsparam)

Initialize itsolver_param.

Parameters
itsparamParameters for iterative solvers
Author
Chensong Zhang
Date
2010/03/23

Definition at line 455 of file parameters.c.

void fasp_param_solver_print ( itsolver_param param)

Print out itsolver parameters.

Parameters
paramParamters for iterative solvers
Author
Chensong Zhang
Date
2011/12/20

Definition at line 957 of file parameters.c.

void fasp_param_solver_set ( itsolver_param itsparam,
input_param iniparam 
)

Set itsolver_param with INPUT.

Parameters
itsparamParameters for iterative solvers
iniparamInput parameters
Author
Chensong Zhang
Date
2010/03/23

Definition at line 636 of file parameters.c.