Fast Auxiliary Space Preconditioning 2.7.7 Aug/28/2022
Loading...
Searching...
No Matches
AuxMessage.c File Reference

Output some useful messages. More...

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

Go to the source code of this file.

Functions

void fasp_itinfo (const INT ptrlvl, const INT stop_type, const INT iter, const REAL relres, const REAL absres, const REAL factor)
 Print out iteration information for iterative solvers. More...
 
void fasp_amgcomplexity (const AMG_data *mgl, const SHORT prtlvl)
 Print level and complexity information of AMG. More...
 
void fasp_amgcomplexity_bsr (const AMG_data_bsr *mgl, const SHORT prtlvl)
 Print complexities of AMG method for BSR matrices. More...
 
void fasp_cputime (const char *message, const REAL cputime)
 Print CPU walltime. More...
 
void fasp_message (const INT ptrlvl, const char *message)
 Print output information if necessary. More...
 
void fasp_chkerr (const SHORT status, const char *fctname)
 Check error status and print out error messages before quit. More...
 

Detailed Description

Output some useful messages.

Note
This file contains Level-0 (Aux) functions.

Copyright (C) 2009–Present by the FASP team. All rights reserved.

Released under the terms of the GNU Lesser General Public License 3.0 or later.

Definition in file AuxMessage.c.

Function Documentation

◆ fasp_amgcomplexity()

void void fasp_amgcomplexity ( const AMG_data mgl,
const SHORT  prtlvl 
)

Print level and complexity information of AMG.

Parameters
mglMultilevel hierachy for AMG
prtlvlHow much information to print
Author
Chensong Zhang
Date
11/16/2009

Definition at line 84 of file AuxMessage.c.

◆ fasp_amgcomplexity_bsr()

void void fasp_amgcomplexity_bsr ( const AMG_data_bsr mgl,
const SHORT  prtlvl 
)

Print complexities of AMG method for BSR matrices.

Parameters
mglMultilevel hierachy for AMG
prtlvlHow much information to print
Author
Chensong Zhang
Date
05/10/2013

Definition at line 136 of file AuxMessage.c.

◆ fasp_chkerr()

void fasp_chkerr ( const SHORT  status,
const char *  fctname 
)

Check error status and print out error messages before quit.

Parameters
statusError status
fctnameFunction name where this routine is called
Author
Chensong Zhang
Date
01/10/2012

Definition at line 213 of file AuxMessage.c.

◆ fasp_cputime()

void void fasp_cputime ( const char *  message,
const REAL  cputime 
)

Print CPU walltime.

Parameters
messageSome string to print out
cputimeWalltime since start to end
Author
Chensong Zhang
Date
04/10/2012

Definition at line 179 of file AuxMessage.c.

◆ fasp_itinfo()

void fasp_itinfo ( const INT  ptrlvl,
const INT  stop_type,
const INT  iter,
const REAL  relres,
const REAL  absres,
const REAL  factor 
)

Print out iteration information for iterative solvers.

Parameters
ptrlvlLevel for output
stop_typeType of stopping criteria
iterNumber of iterations
relresRelative residual of different kinds
absresAbsolute residual of different kinds
factorContraction factor
Author
Chensong Zhang
Date
11/16/2009

Modified by Chensong Zhang on 03/28/2013: Output initial guess Modified by Chensong Zhang on 04/05/2013: Fix a typo

Definition at line 41 of file AuxMessage.c.

◆ fasp_message()

void fasp_message ( const INT  ptrlvl,
const char *  message 
)

Print output information if necessary.

Parameters
ptrlvlLevel for output
messageError message to print
Author
Chensong Zhang
Date
11/16/2009

Definition at line 196 of file AuxMessage.c.