Fast Auxiliary Space Preconditioning  1.8.4 Feb/15/2016
message.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 print_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 print_amgcomplexity (AMG_data *mgl, const SHORT prtlvl)
 Print complexities of AMG method. More...
 
void print_amgcomplexity_bsr (AMG_data_bsr *mgl, const SHORT prtlvl)
 Print complexities of AMG method for BSR matrices. More...
 
void print_cputime (const char *message, const REAL cputime)
 Print CPU walltime. More...
 
void print_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
These routines are meant for internal use only.

Definition in file message.c.

Function Documentation

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 199 of file message.c.

void void print_amgcomplexity ( AMG_data mgl,
const SHORT  prtlvl 
)

Print complexities of AMG method.

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

Definition at line 79 of file message.c.

void void print_amgcomplexity_bsr ( 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 122 of file message.c.

void void print_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 165 of file message.c.

void print_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 36 of file message.c.

void print_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 182 of file message.c.