Ifpack_Utils.cpp File Reference

#include "Ifpack_ConfigDefs.h"
#include "Ifpack_Preconditioner.h"
#include "Ifpack_Utils.h"
#include "Epetra_Comm.h"
#include "Epetra_CrsMatrix.h"
#include "Epetra_CrsGraph.h"
#include "Epetra_Map.h"
#include "Epetra_BlockMap.h"
#include "Epetra_Import.h"
#include "Epetra_MultiVector.h"
#include "Epetra_Vector.h"
#include <iomanip>
#include "limits.h"
#include "float.h"
#include "Epetra_FECrsMatrix.h"

Include dependency graph for Ifpack_Utils.cpp:

Go to the source code of this file.

Functions

void Ifpack_PrintLine ()
 Prints a line of `=' on cout.
void Ifpack_BreakForDebugger (Epetra_Comm &Comm)
 Stops the execution of code, so that a debugger can be attached.
Epetra_CrsMatrixIfpack_CreateOverlappingCrsMatrix (const Epetra_RowMatrix *Matrix, const int OverlappingLevel)
 Creates an overlapping Epetra_CrsMatrix. Returns 0 if OverlappingLevel is 0.
Epetra_CrsGraphIfpack_CreateOverlappingCrsMatrix (const Epetra_CrsGraph *Graph, const int OverlappingLevel)
 Creates an overlapping Epetra_CrsGraph. Returns 0 if OverlappingLevel is 0.
string Ifpack_toString (const int &x)
 Convertes an integer to string.
string Ifpack_toString (const double &x)
 Convertes a double to string.
int Ifpack_PrintResidual (char *Label, const Epetra_RowMatrix &A, const Epetra_MultiVector &X, const Epetra_MultiVector &Y)
 Prints on cout the true residual.
int Ifpack_PrintResidual (const int iter, const Epetra_RowMatrix &A, const Epetra_MultiVector &X, const Epetra_MultiVector &Y)
void Ifpack_PrintSparsity_Simple (const Epetra_RowMatrix &A)
double Ifpack_FrobeniusNorm (const Epetra_RowMatrix &A)
void print ()
template<class T>
void print (char *str, T val)
template<class T>
void print (char *str, T val, double percentage)
template<class T>
void print (char *str, T one, T two, T three, bool equal=true)
int Ifpack_Analyze (const Epetra_RowMatrix &A, const bool Cheap, const int NumPDEEqns)
 Analyzes the basic properties of the input matrix A; see ifp_analyze.
int Ifpack_AnalyzeVectorElements (const Epetra_Vector &Diagonal, const bool abs, const int steps)
 Analyzes the distribution of values of the input vector Diagonal.
int Ifpack_AnalyzeMatrixElements (const Epetra_RowMatrix &A, const bool abs, const int steps)
 Analyzes the distribution of values of the input matrix A.
int Ifpack_PrintSparsity (const Epetra_RowMatrix &A, const char *InputFileName, const int NumPDEEqns)


Function Documentation

void Ifpack_PrintLine  ) 
 

Prints a line of `=' on cout.

Definition at line 13 of file Ifpack_Utils.cpp.

void Ifpack_BreakForDebugger Epetra_Comm Comm  ) 
 

Stops the execution of code, so that a debugger can be attached.

Definition at line 19 of file Ifpack_Utils.cpp.

Epetra_CrsMatrix* Ifpack_CreateOverlappingCrsMatrix const Epetra_RowMatrix Matrix,
const int  OverlappingLevel
 

Creates an overlapping Epetra_CrsMatrix. Returns 0 if OverlappingLevel is 0.

Definition at line 57 of file Ifpack_Utils.cpp.

Epetra_CrsGraph* Ifpack_CreateOverlappingCrsMatrix const Epetra_CrsGraph Graph,
const int  OverlappingLevel
 

Creates an overlapping Epetra_CrsGraph. Returns 0 if OverlappingLevel is 0.

Definition at line 123 of file Ifpack_Utils.cpp.

string Ifpack_toString const int &  x  ) 
 

Convertes an integer to string.

Definition at line 183 of file Ifpack_Utils.cpp.

string Ifpack_toString const double &  x  ) 
 

Convertes a double to string.

Definition at line 191 of file Ifpack_Utils.cpp.

int Ifpack_PrintResidual char *  Label,
const Epetra_RowMatrix A,
const Epetra_MultiVector X,
const Epetra_MultiVector Y
 

Prints on cout the true residual.

Definition at line 199 of file Ifpack_Utils.cpp.

int Ifpack_PrintResidual const int  iter,
const Epetra_RowMatrix A,
const Epetra_MultiVector X,
const Epetra_MultiVector Y
 

Definition at line 211 of file Ifpack_Utils.cpp.

void Ifpack_PrintSparsity_Simple const Epetra_RowMatrix A  ) 
 

Definition at line 234 of file Ifpack_Utils.cpp.

double Ifpack_FrobeniusNorm const Epetra_RowMatrix A  ) 
 

Definition at line 278 of file Ifpack_Utils.cpp.

void print  )  [static]
 

Definition at line 301 of file Ifpack_Utils.cpp.

template<class T>
void print char *  str,
val
[static]
 

Definition at line 308 of file Ifpack_Utils.cpp.

template<class T>
void print char *  str,
val,
double  percentage
[static]
 

Definition at line 316 of file Ifpack_Utils.cpp.

template<class T>
void print char *  str,
one,
two,
three,
bool  equal = true
[static]
 

Definition at line 326 of file Ifpack_Utils.cpp.

int Ifpack_Analyze const Epetra_RowMatrix A,
const bool  Cheap,
const int  NumPDEEqns
 

Analyzes the basic properties of the input matrix A; see ifp_analyze.

Definition at line 348 of file Ifpack_Utils.cpp.

int Ifpack_AnalyzeVectorElements const Epetra_Vector Diagonal,
const bool  abs = false,
const int  steps = 10
 

Analyzes the distribution of values of the input vector Diagonal.

Parameters:
Diagonal - (In) Vector to be analyzed.
abs - (In) if true, the function will analyze vector B, whose elements are defined as $ B_{i} = | D_{i}| $.
steps - (In) number of intervals for the analysis.
An example of output is reported ifp_vector.

Definition at line 725 of file Ifpack_Utils.cpp.

int Ifpack_AnalyzeMatrixElements const Epetra_RowMatrix A,
const bool  abs = false,
const int  steps = 10
 

Analyzes the distribution of values of the input matrix A.

Parameters:
A - (In) matrix to be analyzed.
abs - (In) if true, the function will analyze matrix B, whose elements are defined as $ B_{i,i} = | A_{i,i}| $.
steps - (In) number of intervals for the analysis.
An example of output is reported ifp_matrix.

Definition at line 782 of file Ifpack_Utils.cpp.

int Ifpack_PrintSparsity const Epetra_RowMatrix A,
const char *  InputFileName,
const int  NumPDEEqns
 

Definition at line 855 of file Ifpack_Utils.cpp.


Generated on Thu Sep 18 12:37:28 2008 for Ifpack Package Browser (Single Doxygen Collection) by doxygen 1.3.9.1